Skip to main content
Glama

List Attachments

list_attachments
Read-only

List documents on a property, client, prospect, location, or pursuit (filename, type such as LOI/Lease, upload date). Use this to find a document, then read_attachment_text to answer questions about its contents. Targeting a property or client returns EVERYTHING filed on that record — documents belonging to the record itself (title report, survey, rep agreement) come back with a null deal_id, and documents filed under a deal come back labelled with their deal_type/deal_id/deal_name. Target a prospect or location instead to see only that one deal's documents.

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": {
      "record_type": "<record_type>",
      "record_id": "<record_id>"
    },
    "name": "list_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
record_idYesThe record id: propertyid / prospectid (client) / propertytoprospectid (prospect) / prospectlocationid (location) / pursuit id. Requires broker participation.
record_typeYes"property" = a listing (document belongs to the property itself, not to any one deal on it), "client" = a represented party (document belongs to the client itself), "prospect" = one deal under a property (landlord-rep), "location" = one deal under a client (tenant-rep), "pursuit" = a client or listing the broker is trying to win (from list_pursuits): letters, proposals and the like. Its files stay with it after it is won, read-only.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already establish this is a read-only, non-destructive, closed-world listing. The description adds real value beyond them by disclosing the result composition: record-level documents come back with a null deal_id while deal-level documents are labelled with deal_type/deal_id/deal_name, which the agent cannot infer from any structured field.

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?

It is front-loaded with the core action and the read_attachment_text handoff, and every sentence carries routing or result-shape information. It is slightly long and restates some record-type semantics already spelled out in the schema enum, but the density is justified by the property/client versus prospect/location distinction.

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?

With no output schema, the description must describe returns — it does, naming filename, document type, and upload date, plus the deal labelling fields. Combined with the read-only annotations and fully documented parameters, nothing an agent needs to invoke this correctly is missing.

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

Parameters4/5

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

Schema coverage is 100% and the enum values are fully documented in the schema, so the baseline would be 3. The description still adds meaning by mapping the record_type choice to result scope (property/client = everything, prospect/location = one deal), which is behavioral semantics not captured in the schema text.

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 opening sentence names a specific verb and resource (List documents) and enumerates the record types it accepts, plus the fields returned (filename, type such as LOI/Lease, upload date). It is clearly distinguishable from the sibling read_attachment_text, which is explicitly named as the content-reading counterpart.

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

Usage Guidelines5/5

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

The description states the use case directly: 'Use this to find a document, then read_attachment_text to answer questions about its contents,' which routes the agent between the two tools. It also gives an explicit selection rule between record types — property/client for everything on the record versus prospect/location for a single deal's documents.

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