nsf://award/{id}

MCP Resource Template

Resource template that returns the full normalized record of one NSF award as JSON, without publications or the Project Outcomes Report.

Status
stable
Trust tier
unverified
Generated
claude-code/claude-opus-5-5, 2026-12-05
Resource
nsf://award/{id}
Tags
resourcesawardsjson

nsf://award/{id} is an MCP resource template. Reading a URI built from it, such as nsf://award/1114898, returns the full normalized record of that award as one JSON document. The record is the same one that get_award_details returns with its defaults, except that the resource has no options: the abstract is always included, and the publications and the Project Outcomes Report HTML are always removed.1

Use the resource when a client works with resources rather than tool calls, for example to attach an award to a conversation as context. Use get_award_details when you need to drop the abstract or add the publications. For the outcomes report itself, read nsf://award/{id}/outcomes or call get_project_outcomes.

The template is not listable. The server registers it with no list callback, so it appears in resources/templates/list but contributes nothing to resources/list. Clients build the URI from an award ID that they already have, for example from a search result.1 2

Template

Property Value
Registered name nsf-award
URI template nsf://award/{id}
Title NSF award record
Description Full record of one NSF award (without publications or outcome report)
MIME type application/json
Listing None (list: undefined); the template is discoverable through resources/templates/list only

Values from registerResources in src/server.ts.1

Reading

When a client reads nsf://award/<id>, the server:

  1. Takes the id variable from the URI. If the SDK supplies an array, the first value is used.
  2. Checks that id is all digits (/^\d+$/). An id that is not all digits is treated as not found and the NSF API is not called. Unlike the awardId argument of the tools, there is no 1 to 10 digit length limit and no trimming.1 3
  3. Fetches the award with the client’s getAward, which calls GET /awards/{id}.json and passes the request’s cancellation signal. A missing award (HTTP 200 with an empty award list) becomes “not found”. An HTTP 404 or a body without a response object is not a missing award: it fails as an upstream error (see Errors).4
  4. Copies the normalized record and deletes projectOutComesReport and the publication fields jrnl, publicationResearch and publicationConference.1 5
  5. Returns one content item with the same URI, MIME type application/json and the record as compact JSON text (JSON.stringify).1

See GET /awards/{id}.json for the upstream endpoint.

Content

The JSON is a normalized award record, as described in Award record:

  • Amounts (estimatedTotalAmt, fundsObligatedAmt) are numbers in US dollars.
  • activeAwd, histAwd and publicAccessMandate are booleans.
  • primaryProgram is an array; pi and coPDPI are arrays of { name, email?, former } objects.
  • piMiddleInitial replaces the API’s misspelled piMiddeInitial.
  • Fields the API sends as "" are dropped.
  • hasOutcomesReport is always present. It is computed before projectOutComesReport is removed, so it still tells whether nsf://award/{id}/outcomes will succeed.5

The record includes abstractText when the API sends one, and every other field the API returns, such as the place of performance, the program officer and the per-year fundsObligated strings.1 5 6

Compared with get_award_details

Field group nsf://award/{id} get_award_details
abstractText Always included Included unless includeAbstract: false
jrnl, publicationResearch, publicationConference Always removed Removed unless includePublications: true
projectOutComesReport Always removed Always removed
Wrapping The bare record { "award": { ... } } as structuredContent plus a JSON text copy

Behaviour from src/server.ts and src/tools/get-award-details.ts.1 7

Errors

A read that finds nothing fails with a protocol-level ResourceNotFoundError, not an empty result. The message is No NSF award with ID <id>, and the JSON-RPC error code observed in the tests is -32602.1 3 This message differs from the tool’s (No NSF award found with ID <id>). The same error is used for an id that is not all digits.

Upstream failures (HTTP errors, including a 404, which is not retried; timeouts and 5xx after retries; cancellation; serviceNotification errors; a body without a response object) are thrown by the client with the messages listed in Errors, for example NSF API award lookup failed (HTTP 503) or Unexpected NSF API response (no "response" object, content-type text/html).4

Examples

Read the record of the fixture award 1114898:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "resources/read",
  "params": { "uri": "nsf://award/1114898" }
}

Shape of the result (values abbreviated; people replaced by placeholders):6

{
  "contents": [
    {
      "uri": "nsf://award/1114898",
      "mimeType": "application/json",
      "text": "{\"id\":\"1114898\",\"title\":\"CNH: Long-Term Vulnerability and Resilience of ...\",\"awardeeName\":\"University of Arizona\",\"startDate\":\"09/01/2011\",\"expDate\":\"02/29/2016\",\"estimatedTotalAmt\":1498027,\"activeAwd\":false,\"pi\":[{\"name\":\"First M Last\",\"email\":\"name@example.edu\",\"former\":false}],\"abstractText\":\"...\",\"hasOutcomesReport\":true}"
    }
  ]
}

A read of an unknown award, such as nsf://award/9999999, fails with a JSON-RPC error whose message contains No NSF award with ID 9999999.3

  1. MCP server factory, tool registration and resource templates ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9

  2. User guide ↩

  3. In-process MCP protocol tests ↩ ↩2 ↩3

  4. NSF Award API client ↩ ↩2

  5. Award normalization and summary projection ↩ ↩2 ↩3

  6. Trimmed live API record of award 1114898 ↩ ↩2

  7. get_award_details tool handler ↩

Sources

  1. MCP server factory, tool registration and resource templates server-source
  2. Award normalization and summary projection normalize-source
  3. NSF Award API client api-client
  4. get_award_details tool handler award-details-tool
  5. In-process MCP protocol tests server-tests
  6. User guide usage-guide
  7. Trimmed live API record of award 1114898 fixture-1114898