Skip to main content
Glama

Sync drafts from company

sync_drafts_from_company
DestructiveIdempotent

Copies the filled fields of the company card to all open documents (invoice drafts and open proformas) the user may edit. A field removed from the card stays on the documents. Issued documents are not changed.

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": {
      "company_id": "<company_id>"
    },
    "name": "sync_drafts_from_company"
  }
}

Input Schema

NameRequiredDescriptionDefault
company_idYesThe id of the company, from list_companies.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/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; the description goes further by explaining exactly what is overwritten, what is not touched (issued documents), and the non-obvious rule that 'a field removed from the card stays on the documents.' That last detail is the kind of nuance the annotations cannot convey. It stops short of describing permissions or the result of the operation.

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?

Three short sentences, front-loaded with the action and scope, followed by two precise behavioral caveats. No filler, no restatement of the title, and each sentence carries distinct information.

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 single-parameter bulk mutation with full annotation coverage, the description covers scope, mutation semantics, and edge cases well. The one gap is what the call returns (affected document count or per-document results), which matters for a bulk write and is not covered by any output schema.

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 the single parameter is already documented, including the pointer to list_companies. The description adds only implicit meaning, that company_id identifies the source card whose filled fields are copied, without naming the parameter or discussing format or validity. Baseline 3 is appropriate.

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 a specific verb and resource ('Copies the filled fields of the company card to all open documents') and enumerates the affected document types (invoice drafts, open proformas). It never names the near-identical sibling sync_drafts_from_customer, so the agent must infer the distinction from the word 'company' alone.

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

Usage Guidelines3/5

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

The description defines scope ('all open documents the user may edit') and an exclusion ('Issued documents are not changed'), which implicitly tells the agent when this tool applies. It gives no explicit when-to-use trigger and does not route the agent to or away from the customer-based sibling, so guidance is implied rather than stated.

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