Skip to main content
Glama
PDF Action Inspector

PDF Action Inspector

Official

Get Fields By Name

get_fields_by_name

Search a PDF by field name and return matching form-field details, including partial-name matches, to inspect or troubleshoot embedded PDF form fields.

Instructions

Get PDF form field information by field name

Search for form fields with specified name in PDF document and return detailed field information. Supports fuzzy matching, will find all fields whose names contain the specified string.

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": {
      "file_path": "<file_path>",
      "field_name": "<field_name>"
    },
    "name": "get_fields_by_name"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYesAbsolute or relative path to PDF file
field_nameYesField name to search for (supports partial matching)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and only discloses the substring-matching behavior. It does not state that the operation is read-only, whether the document must already be loaded/cached, whether matching is case-sensitive, or whether a no-match returns an empty result versus an error. For a lookup tool with zero annotation coverage this leaves real gaps.

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?

Two sentences, front-loaded with the purpose, and the matching behavior immediately after. The opening line largely restates the title, which is minor redundancy rather than bloat.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and both parameters are covered by the schema. What is missing relative to the tool's complexity is operational context: document-loading/unlock prerequisites, case sensitivity, and no-match behavior.

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%, so both parameters are already documented, and file_path/field_name meanings are not extended much here. The one addition is clarifying that matching is 'contains' rather than merely 'partial', which sharpens the slightly vague schema wording, so baseline 3 fits.

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 states a specific verb and resource: search form fields by name in a PDF and return detailed field information. That resource (PDF form fields) is distinct from every listed sibling, so an agent can tell it apart without opening schemas, though no sibling is named explicitly.

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 is only implied: the note that partial names work tells the agent it does not need an exact field name, which is actionable. There is no explicit when-to-use/when-not, no prerequisite guidance (e.g. whether the PDF must first be loaded or unlocked via set_pdf_password), and no alternative tool named.

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