Skip to main content
Glama

Teams files

teams_file
Read-only

List files shared in a chat or extract text from a PDF, DOCX, PPTX, XLSX, or plain-text file to retrieve its content.

Instructions

List files shared in a chat, or read the text of one (PDF, DOCX, PPTX, XLSX or plain text).

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": {
      "chat": "<chat>"
    },
    "name": "teams_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYesChat ref (c:…), or a name: the chat title, or the person of a 1:1 chat.
nameNoA file name to read its text; omit to list shared files.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds useful behavior detail: reading returns extracted *text*, and only for the five listed formats. It does not say what happens with an unsupported format, whether long documents are truncated, or how listing is paginated.

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?

A single sentence with the listing mode front-loaded and the read mode plus format list following. No filler, no repetition, and the format enumeration is packed into parentheses rather than a separate list.

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 two-parameter, read-only tool with full schema coverage and no output schema, the description covers both modes and the format boundary, which is the main thing an agent needs. Only edge behavior (unsupported formats, truncation) is left unstated, which is a minor gap at this complexity level.

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 100%: the `chat` parameter already documents the c:… ref / title / 1:1 person forms, and `name` already says 'omit to list shared files.' The description largely restates this, adding only the supported-format enumeration. Baseline 3 is appropriate when the schema carries the parameter semantics.

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 names two concrete operations on a specific resource: listing files shared in a chat, and reading the text of one file. The parenthetical format list (PDF, DOCX, PPTX, XLSX, plain text) further pins down scope. It does not explicitly contrast itself with a sibling like teams_read, so it falls just short of 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 Guidelines4/5

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

The two-clause structure maps directly onto the optional `name` parameter: omit it to list, supply it to read. That tells an agent which mode to pick without ambiguity. There are no explicit exclusions or named alternatives (e.g., for reading message history rather than files), which keeps it from a 5.

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