Skip to main content
Glama
Beankeeper

Beankeeper

Official

document_amend

Replace draft invoice or bill terms at the expected revision to update an editable document before approval.

Instructions

Replace draft terms at the expected revision.

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": "<company>",
      "id": "<id>",
      "revision": "<revision>",
      "terms": "<terms>"
    },
    "name": "document_amend"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesA sales invoice or vendor bill ID.
termsYesComplete draft revision eligible for approval.
companyYes
revisionYesMonotonic revision of an editable draft.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations supply only readOnlyHint=false, so the description carries the behavioral load; it does disclose that existing terms are replaced wholesale and that a revision precondition applies, which is real value beyond the annotation. It does not say what happens on a revision mismatch (error vs. silent overwrite), whether prior terms are recoverable, or whether issued documents can be amended, which are the questions an agent actually needs answered before a destructive overwrite.

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?

A single imperative sentence with the verb and the concurrency condition front-loaded, and no filler. It is tight, but the terseness borders on under-specification for a destructive nested-object mutation.

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

Completeness2/5

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

This is a destructive write with four required parameters, a nested line-item object, and no output schema to explain the result. A one-sentence description cannot cover the state preconditions, failure modes on revision conflict, and post-amend return value that an agent needs to invoke it safely.

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 description coverage is 75%, so the schema already documents most fields, and the description adds the meaningful nuance that 'revision' is an expected/current-revision match rather than an arbitrary counter. It says nothing about the nested 'terms' object's semantics (e.g. whether all lines must be resupplied and old lines discarded), leaving the most consequential parameter under-explained relative to its complexity.

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 ('Replace') applied to a specific resource ('draft terms') with a qualifier ('at the expected revision'), so an agent can tell this is a mutation of an existing editable document rather than a creation or issuance step. It stops short of differentiating itself from amend/issue siblings such as document_draft or document_issue, but the core operation is unambiguous.

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 vs when-not-to-use guidance: nothing says the document must already exist in an editable draft state, that this is the path for correcting terms before issuance, or that document_issue is the follow-on step. The phrase 'at the expected revision' hints at a concurrency precondition but never states the caller's obligation explicitly.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools