Skip to main content
Glama

attachment-references

Check that what a message says is attached matches the attachments actually supplied — Compares a message's wording with its attachment list: 'see attached' with nothing attached, a named file (report.pdf) that is not in the list, a kind of file mentioned (the spreadsheet, a screenshot, the PDF) that no attachment matches by extension or MIME type, and a stated count ('two files') that differs from the list; attachments the text never mentions are listed. Mentions inside a negation

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": {
      "text": "<text>",
      "attachments": "<attachments>"
    },
    "name": "attachment-references"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesMessage body.
attachmentsYesThe attachments actually present; may be empty.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the substantive behavior — the four mismatch rules plus the reverse direction ('attachments the text never mentions are listed') — which is genuinely useful. However, it never states the operation is read-only, describes the shape of the result (what an issue record looks like), or explains that the final trailing clause about negation is cut off, leaving one detection rule unexplained.

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

Conciseness3/5

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

The lead clause is front-loaded and the enumeration is informative, but the sentence is extremely long and dense, and it terminates mid-thought at 'Mentions inside a negation ' — a dangling fragment that both wastes space and leaves a rule incomplete. A tighter structure with the negation caveat finished would earn a higher score.

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?

There is no output schema, so the description must explain what comes back; it only hints that unmentioned attachments 'are listed' and never defines the failure/issue structure. Combined with the truncated negation clause, an agent knows what the tool checks but not exactly what it returns or how to interpret a partial-match result.

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 the schema already defines both parameters, including name/bytes/mimeType for each attachment. The description adds only marginal meaning beyond that — it clarifies that 'text' is the message body being mined for claims and that the attachments list may be empty (which the schema also says). Baseline 3 is appropriate.

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 gives a specific verb ('check that ... matches', 'compares') and names both operands, the message wording and the attachment list. It then enumerates the exact mismatch categories it detects ('see attached' with nothing attached, a named file not in the list, a type of file with no matching extension or MIME type, a stated count that differs), so an agent can tell precisely what this tool does 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 Guidelines3/5

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

Usage is implied rather than stated: it is a pre-send validation of message text against the attachments actually supplied. There is no explicit 'use this when' framing, no statement of when not to use it, and no pointer to an alternative (e.g., a general text-analysis or file-listing sibling).

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