Skip to main content
Glama

check_filename_consistency

Detect mismatches between a filename and its document text by flagging proper-noun-like tokens missing from the content.

Instructions

Tokenizes the filename (stripping extension, separators, common document-type stopwords, and — heuristically — the document owner's own leading First/Last name tokens), then flags any remaining proper-noun-like token that doesn't appear anywhere in the extracted document text. Facts only: presence or absence — never a verdict on whether a mismatch is intentional (brief §3, §4.4).

Accepts the document either as a filesystem path OR as inline content_base64 (with filename required alongside it — this is exactly the name that gets tokenized, so pass the file's real name here, not a placeholder). Exactly one of the two input forms must be given.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo
filenameNo
content_base64No

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
flagsYes
formatYes
checked_tokensYes
filename_tokensYes
assumed_personal_name_tokensYes
Behavior5/5

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

With no annotations provided, the description carries the full burden, and it delivers: it discloses heuristic owner-token stripping, stopword removal, facts-only output with no verdict, and the exact meaning of the filename parameter. This is far more transparent than typical tool definitions.

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?

The description is dense but well-structured: first the algorithm and behavioral contract, then the input contract. Every sentence adds necessary information, and the references to §3 and §4.4 are compact without being filler.

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

Completeness5/5

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

Given the tool's moderate complexity, three parameters, and an output schema, the description is complete enough for correct invocation. It explains what is analyzed, how inputs are provided, and what the tool will and will not conclude.

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

Parameters5/5

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

Schema coverage is 0% and no parameters are required in the schema, so the description must compensate. It clearly explains that path and content_base64 are mutually exclusive, that filename is mandatory alongside content_base64, and that filename is the actual tokenized name, not a placeholder.

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?

The description is highly specific: tokenize the filename, strip extension/separators/stopwords/owner-name tokens, then flag proper-noun-like tokens absent from the document text. This clearly differentiates it from sibling tools like check_docx_structure, check_language, or check_pdf_layout.

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?

The input-mode rules are explicit: pass either a filesystem path or inline content_base64 with a real filename, and exactly one form must be given. However, it gives no guidance on when to choose this tool versus its siblings, and it names no alternatives or exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Nasser9892/vellum-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server