Skip to main content
Glama

get_attachment_metadata

Read-only

Returns metadata for files stored in an Attachment-type field of a Caspio table. Returns PK_ID (the table record's internal ID), FileName, FileType, Size, DateCreated, and DateUpdated. Use the optional WHERE clause to filter to specific records. A table record can have multiple Attachment-type fields.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
whereNoOptional WHERE clause to filter records. Supports Microsoft SQL Server syntax. Examples: 'PK_ID=42'; 'Status=N'Active''
tableIdYesTable Id (obtained from discover_tables, e.g. 'd99357') -- the table's name has no meaning for API calls; only the Id can be used here.
attachmentFieldNameYesThe name of the Attachment-type field in the table

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the agent knows this is a safe read operation. The description adds context about the returned fields and the note that a table record can have multiple Attachment-type fields, but it does not disclose any additional behavioral traits such as pagination, limits, or error conditions. Given the annotations cover the safety profile, a 3 is appropriate.

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?

The description is concise and well-structured: the first sentence states the purpose and lists the returned fields, the second clarifies the optional WHERE clause and notes the multiple-attachment-field aspect. There is no fluff, and all sentences contribute to the agent's understanding. It is appropriately front-loaded.

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 simple read-only metadata retrieval tool with no output schema, the description is mostly complete. It lists all returned fields, explains the optional filter, and clarifies that a record can have multiple attachment fields. It does not explicitly state behavior for multiple files per field or any limits, but these are minor omissions given the simplicity and the annotations that already cover safety.

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?

The input schema has 100% description coverage, with each parameter (tableId, attachmentFieldName, where) already explained, including examples for the WHERE clause. The description reinforces the use of WHERE for filtering but does not add substantive meaning beyond the schema. Since the schema carries the full burden, the description adds only marginal value, justifying the baseline 3.

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 clearly states the tool returns metadata for files in an Attachment-type field of a Caspio table, listing specific fields (PK_ID, FileName, etc.). It is specific and unambiguous, but it does not explicitly differentiate itself from the sibling tool get_file_metadata, which could also return file metadata. Thus it is clear but lacks explicit sibling differentiation.

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 description provides no guidance on when to use this tool versus alternatives such as get_file_metadata, query_table, or search_files. It only mentions the optional WHERE clause for filtering, which is about parameter usage, not about choosing the right tool. There is no mention of when not to use it or which scenarios call for a different tool.

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