Skip to main content
Glama

Search CBP classification rulings

search_rulings
Read-onlyIdempotent

Access: API key required. Search CBP CROSS rulings by an HTS code or prefix the ruling cites (4 to 10 digits) and/or words in the ruling subject, the same operation as GET /v1/rulings. Each ruling lists the HTS codes it cites, the later rulings CBP lists as modifying or revoking it, and a link to the ruling at CBP. Coverage states which rulings are held and when they were last checked against CBP. A ruling binds only the merchandise it was issued for; a ruling with no later ruling listed is not thereby in force.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_rulings"
  }
}

Input Schema

NameRequiredDescriptionDefault
htsNo
limitNo
queryNo
offsetNo
collectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, and the description adds substantial context on top: an API key is required, each result enumerates cited HTS codes, later modifying or revoking rulings, and a CBP link, plus coverage provenance. It also warns about a real interpretive trap — a ruling binds only the merchandise it was issued for, and absence of a listed revocation does not mean it is in force.

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?

Front-loads the access requirement, then the operation and filters, then the result shape, then the legal caveat — a sensible order with no filler. Dense but each sentence adds information; only the coverage sentence is slightly tangential to invoking the tool.

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?

With no output schema, the description does the heavy lifting by describing result contents (cited codes, revocations, link) and provenance, which is exactly what an agent needs. The remaining gap is invocation-level: pagination limits (max 50, offset ceiling 5000) and the NY/HQ collection choice are left entirely to the schema.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the full burden, yet it only explains two of five parameters (hts, query). The limit/offset pagination pair and especially the NY/HQ 'collection' enum are never mentioned, and the stated '4 to 10 digits' for hts is narrower than the schema pattern allowing dots and up to 13 characters.

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

Purpose5/5

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

States a specific verb and resource ('Search CBP CROSS rulings') plus the exact filter dimensions (HTS code or prefix, words in the ruling subject) and even the equivalent endpoint (GET /v1/rulings). The 'search' framing implicitly separates it from the singular get_ruling sibling, so an agent can pick correctly without opening a schema.

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?

Gives real context: API key required, and that a query can be driven by HTS code and/or subject keywords. However, it never states when to prefer this over get_ruling (e.g., when you already have a ruling number) or over search_tariffs, nor does it set exclusions or describe behavior when no filters are supplied.

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