Skip to main content
Glama

NSN Lookup: National Stock Number (NSN) / NATO Stock Number data

Schedule B and HTS codes

get_trade_codes
Read-onlyIdempotent

National Stock Number (NSN) / NATO Stock Number trade codes: Schedule B (US export) and HTS (US import) as carried in FLIS. Source and classification date are not held. Developer plan and above. Data: FLIS as loaded by NSN Lookup; see dataAsOf for freshness. Each item includes links.www, its page on www.nsnlookup.com. Terms: no bulk storage or republishing.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "nsns": "<nsns>"
    },
    "name": "get_trade_codes"
  }
}

Input Schema

NameRequiredDescriptionDefault
nsnsYesNational Stock Numbers (13 characters, e.g. 5305-00-123-4567, dashes optional) or NIINs (9 characters). The caller's plan sets how many per call (Free 5, Developer 25, Business 100).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the readOnly/idempotent/openWorld annotations, the description discloses real behavioral facts: classification source and date are not held, data freshness is exposed via dataAsOf, results carry a links.www page URL, and bulk storage or republishing is prohibited. The only weakness is the terse 'links.www' phrasing, which is cryptic without an output schema to confirm field shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is front-loaded with the resource definition and every sentence carries information (source, gaps, tier, freshness, links, terms). The telegraphic style ('links.www, its page on www.nsnlookup.com') and missing articles make a few lines harder to parse than necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter read-only lookup with no output schema, the description covers source system, known data gaps, freshness signaling, tier gating, result field hints, and licensing terms. What is missing is whether codes can be absent/unclassified for a given NSN and what the response container looks like, but the essentials for correct invocation are present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and the single nsns parameter is fully documented there (13-char NSN or 9-char NIIN, dashes optional, per-call caps by plan). The description adds nothing about the parameter itself except the 'Developer plan and above' tier constraint, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource and scope: Schedule B (US export) and HTS (US import) trade codes attached to NSNs/NATO stock numbers, drawn from FLIS. That is a clear verb-less but concrete retrieval purpose distinguishable from a general NSN lookup. It stops short of explicitly contrasting itself with lookup_nsn or check_export, so an agent must infer the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is only implied: you supply NSNs and get trade codes, and a plan tier ('Developer plan and above') gates access. There is no statement of when to prefer this over lookup_nsn or check_export, and no exclusions or prerequisites beyond the tier note.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources