Skip to main content
Glama

room_attachment_read

Read uploaded room attachments by ID, URL, or filename, extracting text from PDFs, DOCX, and text-like files; images return URLs and metadata for vision-capable tools.

Instructions

Read an uploaded room attachment by id, URL, or filename. Extracts text for PDF/DOCX/text-like files; images return URL/metadata for a vision-capable tool.

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": {
      "code": "<code>"
    },
    "name": "room_attachment_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoAttachment id from message.attachments[].id
urlNoAttachment URL
codeYesRoom code
nameNoAttachment filename (newest match wins)
maxCharsNoMax extracted chars (default 12000, max 30000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.27.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does add real behavioral value by disclosing that output varies by file type (text extraction for PDF/DOCX/text-like, metadata for images), and 'Read' implies a non-mutating operation. It says nothing about truncation despite maxChars existing, nor about access requirements, unsupported types, or failure modes.

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 tightly worded sentences, front-loaded with the action and selectors, then the file-type behavior. No filler, no redundancy.

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?

For a five-parameter tool with no output schema, explaining the return shape by file type is the most important thing the description can do, and it does so. Remaining gaps are minor: behavior when multiple selectors are supplied, whether truncation at maxChars is signaled, and unsupported file type handling.

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 every parameter is already documented, including 'newest match wins' for name and the maxChars default/max. The description names three of the five selectors (id, url, name) and implies code is required, but adds no new syntax, format, or precedence rules beyond the schema.

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?

States a specific verb (read) and resource (an uploaded room attachment), and names the three selectors — id, URL, filename. It further specifies what it does for different file types, so an agent knows exactly what operation it performs. It does not explicitly distinguish itself from any sibling, which is the only thing holding it below a 5.

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 by the operation itself: call this to fetch content from an attachment. It also gives conditional guidance for images ('return URL/metadata for a vision-capable tool'), which tells the agent what to do next. But there is no explicit when-to-use/when-not guidance or routing to alternatives for non-text files.

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