Award record
Reference
Fields of the normalized NSF award record, how they differ from the raw API values, and which fields summary records, full records and printFields projections carry.
Every award the server returns is a normalized record. The NSF API sends every value as a string, spells one field
wrong and uses "" for absent values.1 The client passes each raw record through normalizeAward in
src/utils/normalize.ts before any tool sees it, so amounts are numbers, flags are booleans, people are parsed
objects, and a derived hasOutcomesReport flag is added.2 Fields that the API adds later pass
through unchanged.3
Tools and resources then return the record in one of three shapes: a compact summary, the full record, or a projection of named fields. This page lists the fields, the conversions, and which shape each tool or resource returns. For how normalization fits into the request flow, see Normalization. For the raw values the API sends, see Response format.
Record shapes by tool and resource
| Where | Shape | Notes |
|---|---|---|
Search tools, default detail: "summary" |
Summary | The summary fields, in a fixed order; coPDPI is a list of names. |
Search tools, detail: "full" |
Full, trimmed | Every normalized field, including abstractText, except the report HTML projectOutComesReport and the publication fields, which could make one record about 75 KB. A trimmed record is about 3-5 KB. |
Search tools, printFields |
Projection | Only the named fields of the full record, including jrnl or projectOutComesReport when named. Overrides detail. |
| get_award_details | Full, trimmed | Inside { "award": ... }. projectOutComesReport is always removed. abstractText is removed when includeAbstract is false (default true). The publication fields are removed unless includePublications is true. |
| nsf://award/{id} | Full, trimmed | Bare JSON. projectOutComesReport and the publication fields are always removed; abstractText is kept. |
| get_project_outcomes | Not an award record | { awardId, title, pdPIName, awardeeName, startDate, expDate, outcomesReport, outcomesReportHtml? }. |
Shapes from shapeAward, toSummary, the lookup tool and the resource handler.4
2 5 6
Normalized values
| Field | Raw API value | Normalized value |
|---|---|---|
estimatedTotalAmt, fundsObligatedAmt |
String of whole dollars, such as "1498027" |
Number. $, commas and whitespace are stripped before parsing. A blank or unparseable value is dropped. |
activeAwd, histAwd |
"true" or "false" |
Boolean. |
publicAccessMandate |
"1" or "0" |
Boolean. |
primaryProgram |
Usually an array; may be a single string | Always an array of strings. |
pi, coPDPI |
Strings "Name email", sometimes with (Former) after the name |
Arrays of person objects (see People). Blank entries are dropped. |
piMiddeInitial (sic) |
String | Renamed piMiddleInitial. Dropped when empty. |
id |
String | String (String(raw.id)). |
hasOutcomesReport |
Not sent | Added. true when projectOutComesReport is a non-blank string. Always present. |
Any field sent as "" |
"" |
Dropped from the record. Only top-level fields are checked. |
Dates (startDate, expDate, date, …) |
mm/dd/yyyy |
Unchanged, still mm/dd/yyyy strings. |
fundsObligated |
Array of strings such as "FY 2011 = $1,498,027.00" |
Unchanged. |
| All other fields | Strings, arrays or objects | Unchanged. |
Booleans accept true, 1, false and 0 in any case, after trimming. Any other flag value is dropped rather than
kept as a string, and the same is true for an amount that does not parse.2 3
7
People
pi and coPDPI become arrays of { name, email?, former }:2 3
| Key | Type | Meaning |
|---|---|---|
name |
string | The name, with (Former) removed and spaces collapsed. |
email |
string, optional | The last word of the entry, when there are at least two words and the last contains @. |
former |
boolean | true when the entry contained (Former) (case-insensitive): the person left the award. |
In summary records only, coPDPI is a list of name strings instead, with ` (Former)` appended for former Co-PIs.
E-mail addresses are only in full records.2
Summary fields
Summary records carry these fields, in this order, and omit any that are absent:2
| Field | Type | Meaning |
|—|—|—|
| id | string | NSF award ID. |
| title | string | Award title. |
| pdPIName | string | Principal Investigator’s full name. |
| coPDPI | array of strings | Co-PI names; ` (Former) marks Co-PIs who left the award. |
| awardeeName | string | Awardee organization. |
| awardeeCity | string | Awardee city. |
| awardeeStateCode | string | Awardee two-letter state code. |
| startDate | string | Start date, mm/dd/yyyy. |
| expDate | string | Expiration date, mm/dd/yyyy. |
| estimatedTotalAmt | number | Estimated total award amount, US dollars. |
| fundsObligatedAmt | number | Funds obligated to date, US dollars. |
| fundProgramName | string | Funding program name. |
| dirAbbr | string | NSF directorate abbreviation. |
| divAbbr | string | NSF division abbreviation. |
| transType | string | Award instrument, such as Standard Grant or Continuing Grant. |
| activeAwd | boolean | true for an active award. |
| hasOutcomesReport | boolean | true` when the award has a Project Outcomes Report. |
Meanings from the output and input schema descriptions.8
Full record fields
A full record has every field the API sent, normalized. The fields that the type definitions name are below; older awards omit some of them.3 Long-text and publication fields can make a record large.
| Group | Fields |
|---|---|
| Identity and type | id, title, agency, transType, cfdaNumber (Assistance Listing number) |
| Awardee | awardee, awardeeName, awardeeAddress, awardeeCity, awardeeStateCode, awardeeCountryCode, awardeeZipCode, awardeeDistrict, awardeeDistrictCode (state code plus district number, such as AZ07), awardeePhone, ueiNumber (awardee Unique Entity Identifier), parentUeiNumber |
| People | pdPIName, piFirstName, piMiddleInitial, piLastName, piEmail, piId, pi, coPDPI, poName, poEmail, poPhone (program officer) |
Dates (mm/dd/yyyy) |
startDate, expDate, date (award action date; what dateStart/dateEnd filter on), initAmendmentDate, latestAmendmentDate |
| Money | estimatedTotalAmt, fundsObligatedAmt, fundsObligated (per-year obligation strings) |
| Organization and program | fundProgramName, program, primaryProgram, progEleCode, progRefCode, dirAbbr, divAbbr, orgLongName, orgLongName2, orgUrl, orgCodeDir, orgCodeDiv, managingPec, fundAgencyCode, awardAgencyCode |
| Place of performance | perfLocation (performing organization), perfAddress, perfCity, perfStateCode, perfCountryCode, perfZipCode, perfDistrict, perfDistrictCode |
| Status | activeAwd, histAwd, publicAccessMandate, hasOutcomesReport |
| Long text | abstractText, projectOutComesReport (report HTML, capital C) |
| Publications | jrnl (journal article objects), publicationResearch, publicationConference |
jrnl entries are objects with keys such as artTitl, artPageNum, auth, dgtlObjId, jrnlTitl, jrnlVol,
jrnlYr and parPblcId.3 The three publication fields are the PUBLICATION_FIELDS that
get_award_details and the award resource drop by default.2 Search tools with detail: "full"
drop them and projectOutComesReport too; only printFields brings them back into a search
record.4 8
printFields projections
printFields is a comma-separated list of field names, such as "id,title,abstractText,estimatedTotalAmt". The
server splits it on commas, trims each name, ignores empty names, and keeps only the matching fields of the full
normalized record, before anything is removed, so it can name jrnl, publicationResearch,
publicationConference or projectOutComesReport. Unknown names are ignored, and the fields keep the record’s order, not the order you
listed.2 8
Use the normalized names (piMiddleInitial, hasOutcomesReport). In a projection, coPDPI is the array of person
objects, as in a full record, not the summary’s name list.7 The NSF API itself ignores its own
printFields parameter, so the projection is done by the server.1
Output schema
AwardRecordSchema in src/types/mcp-tools.types.ts describes every record shape. It is a loose object: fields it
does not name are allowed, and every field it names is optional. The named fields are typed:8
| Field | Schema type |
|---|---|
id, title, pdPIName, awardeeName, awardeeCity, awardeeStateCode, fundProgramName, dirAbbr, divAbbr, transType, abstractText |
string |
startDate, expDate |
string (mm/dd/yyyy) |
estimatedTotalAmt, fundsObligatedAmt |
number (US dollars) |
activeAwd, hasOutcomesReport |
boolean |
pi |
array of person objects (name string, email optional string, former boolean; extra keys allowed) |
coPDPI |
array whose items are each a string (summary records) or a person object (full records and projections) |
The schema is loose on purpose: clients validate structuredContent against it, so a strict schema would turn
upstream data drift into tool errors. A named field with the wrong type still fails, for example an amount that
arrives as a string.8 1 See Errors.
Examples
The fixture award 1114898 as the API sends part of it, and the same fields after normalization (people replaced by placeholders):9
{
"id": "1114898",
"estimatedTotalAmt": "1498027",
"activeAwd": "false",
"histAwd": "false",
"publicAccessMandate": "0",
"piMiddeInitial": "W",
"poEmail": "",
"pi": ["First W Last name@example.edu"],
"primaryProgram": ["01001112DB NSF RESEARCH & RELATED ACTIVIT"],
"fundsObligated": ["FY 2011 = $1,498,027.00"]
}
{
"id": "1114898",
"fundsObligated": ["FY 2011 = $1,498,027.00"],
"hasOutcomesReport": true,
"estimatedTotalAmt": 1498027,
"activeAwd": false,
"histAwd": false,
"publicAccessMandate": false,
"primaryProgram": ["01001112DB NSF RESEARCH & RELATED ACTIVIT"],
"pi": [{ "name": "First W Last", "email": "name@example.edu", "former": false }],
"piMiddleInitial": "W"
}
The normalized fields appear in the order normalizeAward produces: the unchanged fields first, then
hasOutcomesReport, then the converted fields.2
poEmail is gone because it was "". hasOutcomesReport is true because the raw record has a
projectOutComesReport.
A projection with printFields: "title,id,hasOutcomesReport" returns the fields in record order:
{
"id": "1114898",
"title": "CNH: Long-Term Vulnerability and Resilience of Coupled Human-Natural Ecosystems to Fire Regime and Climate Changes at an Ancient Wildland Urban Interface",
"hasOutcomesReport": true
}