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.
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:
- Takes the
idvariable from the URI. If the SDK supplies an array, the first value is used. - Checks that
idis all digits (/^\d+$/). An id that is not all digits is treated as not found and the NSF API is not called. Unlike theawardIdargument of the tools, there is no 1 to 10 digit length limit and no trimming.1 3 - Fetches the award with the client’s
getAward, which callsGET /awards/{id}.jsonand passes the request’s cancellation signal. A missing award (HTTP 200 with an emptyawardlist) becomes “not found”. An HTTP 404 or a body without aresponseobject is not a missing award: it fails as an upstream error (see Errors).4 - Copies the normalized record and deletes
projectOutComesReportand the publication fieldsjrnl,publicationResearchandpublicationConference.1 5 - Returns one content item with the same URI, MIME type
application/jsonand 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,histAwdandpublicAccessMandateare booleans.primaryProgramis an array;piandcoPDPIare arrays of{ name, email?, former }objects.piMiddleInitialreplaces the API’s misspelledpiMiddeInitial.- Fields the API sends as
""are dropped. hasOutcomesReportis always present. It is computed beforeprojectOutComesReportis 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