Skip to main content
Glama

Set glossaries and style guides

document_attach_resources
DestructiveIdempotent

Attach/detach glossaries + style-guide versions ([] = detach all of that kind).

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>"
    },
    "name": "document_attach_resources"
  }
}

Input Schema

NameRequiredDescriptionDefault
document_idYesId of one language version of a document (from document_list or document_create).
glossary_idsNoThe full list of glossary ids to attach (replaces the current list; [] detaches all; omit to leave unchanged).
styleguide_version_idsNoThe full list of style-guide VERSION ids to attach (replaces the current list; [] detaches all; omit to leave unchanged).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / document_id / description
      Added value: +"Id of one language version of a document (from document_list or document_create)."
    • addedInput schema / properties / glossary_ids / description
      Added value: +"The full list of glossary ids to attach (replaces the current list; [] detaches all; omit to leave unchanged)."
    • addedInput schema / properties / styleguide_version_ids / description
      Added value: +"The full list of style-guide VERSION ids to attach (replaces the current list; [] detaches all; omit to leave unchanged)."
  2. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, so the safety profile is known; the description still adds real value by making the replacement semantics explicit ([] detaches all of that kind). It does not say whether prior associations are lost irreversibly for other kinds of resources, but the key destructive behavior is disclosed.

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 front-loaded sentence with the operation stated first and the one non-obvious edge case in a parenthetical. Nothing redundant or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter mutation with full schema documentation and no output schema, the description is close to adequate. It omits prerequisites and confirmation of what a successful call returns, which matters for a destructive replace-all operation.

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% and each parameter already documents replace/[]-detach/omit-to-leave, so the description's '[] = detach all' largely restates the schema. It adds no new meaning about ordering, validation, or cross-parameter interaction between glossary_ids and styleguide_version_ids.

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 specific verbs (attach/detach) and specific resources (glossaries and style-guide versions), which is enough to separate it from siblings like glossary_create or document_update. It stops short of naming an alternative or explaining why one would attach versions of a style guide rather than the guide itself.

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?

There is no explicit when-to-use or when-not-to-use guidance, and no prerequisites (e.g. that the document must be a single language version, or that ids must come from glossary_list). The parenthetical only explains detach syntax, which is parameter behavior rather than usage guidance.

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.