Skip to main content
Glama

Get Office Action Text

get_office_action_text
Read-onlyIdempotent

Fetch one USPTO office action's full text. Pass document_id (from search_office_actions' document_id field) for an exact match, or application_number + mail_date to look it up by application and date. Returns the office action body text, its character length, and a truncation flag.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "mail_date": "2023-01-03",
      "application_number": "17248024"
    },
    "name": "get_office_action_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
_apiKeyNoUSPTO ODP API key. Get free at https://data.uspto.gov/myodp.
mail_dateNoThe office action mail date (ISO YYYY-MM-DD), from search_office_actions' mail_date field. Required when document_id is not given.
document_idNoThe office action's document id, as returned by search_office_actions (field document_id).
include_rawNoDebug escape hatch: skip normal parsing and return the bare upstream HTTP status + first 500 chars of body instead (fleet #3305, diagnosing a request shape live, no redeploy needed).
application_numberNoUS patent application number, use with mail_date when you do not have a document_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / application_number / description
      Previous value: -"US patent application number — use with mail_date when you do not have a document_id."New value: +"US patent application number, use with mail_date when you do not have a document_id."
    • changedInput schema / properties / include_raw / description
      Previous value: -"Debug escape hatch: skip normal parsing and return the bare upstream HTTP status + first 500 chars of body instead (fleet #3305 — diagnosing a request shape live, no redeploy needed)."New value: +"Debug escape hatch: skip normal parsing and return the bare upstream HTTP status + first 500 chars of body instead (fleet #3305, diagnosing a request shape live, no redeploy needed)."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the bar is lower. The description adds real value beyond them by disclosing the return payload (body text, character length, truncation flag) and the include_raw debug escape hatch that bypasses normal parsing.

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

Conciseness5/5

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

Two sentences, front-loaded with the action, then the parameter routing, then the return shape. No filler or repetition of the title.

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 carries the return-value burden and does so adequately (body text, length, truncation flag). It stops short of saying what to do when the truncation flag is set or how large the text can be, a minor gap for a fetch tool.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds relational meaning the schema does not: which parameter combinations are valid and where document_id/mail_date originate. It does not explain include_raw's trade-off beyond the schema's own text, keeping it just above baseline.

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 ('Fetch one USPTO office action's full text') and implicitly distinguishes itself from search_office_actions by being the single-document text retriever. An agent can tell what it returns without opening the schema.

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

Usage Guidelines4/5

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

Gives two concrete invocation paths (document_id for exact match, or application_number + mail_date) and points to search_office_actions as the source of those identifiers. It does not state when to prefer this over the sibling citation/rejection tools, but the retrieval context is clear.

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.