Skip to main content
Glama

Remove documents from an offer

remove_offer_files
DestructiveIdempotent

Take documents out of an offer – the files stay in their folders.

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": {
      "offer_id": "<offer_id>",
      "file_ids": "<file_ids>"
    },
    "name": "remove_offer_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idsYesDocument ids (from list_documents / search)
offer_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is known. The description adds genuinely useful context the annotations do not carry: the documents themselves are not deleted, they remain in their folders and only the offer association is removed. It does not mention permissions or behavior with invalid/duplicate ids.

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?

One short sentence with the key non-deletion caveat placed immediately after the action, so nothing is wasted. It is lean rather than padded, though the terseness is partly why guidance and parameter meaning are missing.

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 two-required-parameter mutation with no output schema, the description covers the essential "what it does not destroy" question but leaves the uncovered offer_id and the error/partial-failure behavior unexplained. Adequate but with clear gaps for a destructive tool.

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

Parameters2/5

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

Schema coverage is 50%: file_ids is documented in the schema, offer_id is not. The description names "documents" and "offer" but adds no format, constraint or edge-case meaning (e.g. the 1-50 item cap, behavior on ids already absent from the offer), so it does not compensate for the uncovered parameter.

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?

"Take documents out of an offer" gives a specific verb plus resource and scopes it to offers, which separates it from add_offer_files and remove_room_documents without naming them. It is clear but stops short of explicitly contrasting with the room-level removal siblings.

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 when-to-use or when-not-to-use guidance and no mention of alternatives such as remove_room_documents or add_offer_files. The agent must infer the offer-vs-room distinction entirely from the tool name.

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