Skip to main content
Glama

Pinpal Jobs

Attach a file

attach_file

Put a file on the document: the signed PDF back from the client, a brief, a photo. base64 for a file, or text for a text file, never both.

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": {
      "document": "<document>",
      "name": "<name>"
    },
    "name": "attach_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe file name with its extension.
textNo
base64No
documentYesThe document's id (from list_documents), or its number once sent, like INV-0007.
contentTypeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already state readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the write-but-not-destructive profile is covered structurally. The description adds genuine behavioral information the schema cannot express: exactly one of `base64` or `text` must be supplied, never both. It says nothing about whether an attachment of the same name replaces an existing one, size limits, or what is returned.

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 short sentences, front-loaded with the action and examples before the payload constraint. Slightly telegraphic phrasing ("never both") but no wasted wording.

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?

For a 5-parameter mutation tool with no output schema and partial schema coverage, the definition covers the highest-risk aspect (payload exclusivity) but omits `contentType`, replacement semantics for existing attachments, and any indication of the result. Adequate but with clear gaps.

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 coverage is only 40%, and the description compensates for the two payload parameters by explaining that `base64` carries a binary file and `text` a text file, plus their mutual exclusivity. It leaves `contentType` completely unexplained and adds nothing about `name` or `document` beyond what the schema descriptions already say.

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?

"Put a file on the document" gives a concrete verb plus resource, and the examples (signed PDF back from the client, a brief, a photo) make the intent unambiguous. It does not explicitly distinguish itself from siblings such as read_file or new_version, but the action is specific enough to route correctly.

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

Usage Guidelines2/5

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

The examples imply scenarios (returning signed documents, attaching briefs/photos), but there is no explicit when-to-use rule, no when-not, and no named alternative. The only real constraint given is payload-mode selection, which is parameter usage rather than tool-selection guidance.

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