Skip to main content
Glama

File a document or hold it as reference material

set_document_relevance
DestructiveIdempotent

Changes data: files a document with its shipment's paperwork ("filed"), or holds it out as reference material that is not part of the shipment ("reference_only"), as the person who connected this app, and records it in the organization's audit log. Filing a document that was held lets Trackberry read it like the rest of the paperwork. Holding one back deletes the free-time notice it produced, and filing it again does not restore that notice; it also takes the document out of the shipment's paperwork. Use it only when the user asks, for example to file an attachment Trackberry held as not belonging to the shipment, or to set aside one that does not. Get document ids from list_documents; a held document is listed with view "reference_only". Safe to repeat: saying what is already true changes nothing. Answers with the document.

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_id": "<document_id>",
      "relevance": "<relevance>"
    },
    "name": "set_document_relevance"
  }
}

Input Schema

NameRequiredDescriptionDefault
relevanceYes"filed" for the shipment's paperwork, "reference_only" to hold it as reference material.
document_idYesA document id such as "doc_45", as returned by list_documents.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations' destructiveHint and idempotentHint flags, the description specifies what is actually destroyed — holding a document back deletes the free-time notice it produced and re-filing does not restore it — and that the change is audited under the connecting user. It also confirms the idempotency semantics ('saying what is already true changes nothing') and the return ('Answers with the document').

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?

Front-loading 'Changes data:' immediately signals the mutation class, and the side-effect warnings follow in priority order. The sentence about filing/holding state transitions is dense and slightly repetitive, but no sentence is purely filler.

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?

For a two-parameter destructive mutation with no output schema, the definition covers the mutation class, both modes, irreversible side effects, idempotency, authorization context (acts as the connecting user, audited), how to source the document id, and what is returned. Nothing an agent would need before invoking it 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 already documented, so the schema does most of the work. The description still adds consequence-level meaning that the schema lacks: what filing does to a previously held document's readability, and what reference_only removes from the shipment's paperwork.

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 description names a specific verb and resource (files a document with its shipment's paperwork, or holds it out as reference material) and enumerates the two resulting states, "filed" and "reference_only". It also distinguishes itself from adjacent operations like delete_document or move_document by describing the reference-only mode as 'not part of the shipment' rather than removal.

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?

It gates usage explicitly ('Use it only when the user asks') and supplies two concrete scenarios (filing an attachment Trackberry held as not belonging to the shipment, setting aside one that does not). It also states the prerequisite for the required id (get document ids from list_documents; a held document is listed with view "reference_only"), so the agent knows how to obtain inputs and which sibling to consult.

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