Skip to main content
Glama

Sergio by Serviche

Approve, edit or skip a document suggestion

decide_company_document_suggestion
Idempotent

Decides one suggestion Sergio read from an uploaded document (itemId from read_company_document or read entity company_documents), as the setup guide's taps do: approve creates the flow as a draft that is OFF or the recurring task PAUSED (nothing runs or sends until a person turns it on); edit rewrites its sentence; skip drops it. approve with sentence applies that edit first. A repeat returns the same created row.

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>",
      "itemId": "<itemId>",
      "action": "<action>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "decide_company_document_suggestion"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
itemIdYes
sentenceNo
document_idYes
idempotency_keyYesYour id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the non-obvious safe-by-default behavior: an approved flow is created as a draft that is OFF and a recurring task is PAUSED, so nothing runs or sends until a human enables it. It also restates idempotency in concrete terms ('a repeat returns the same created row'). It does not say whether skip is reversible or what permissions are required, which keeps it off a 5.

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-loaded with the core action and scope, then action semantics, then the retry behavior — a sensible order. It is a single dense run-on with nested parentheses, which costs some readability but almost every clause 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 5-parameter mutation with no output schema and no annotations covering side effects, the description supplies the essentials: the itemId source, per-action outcomes, the approve+edit combination, and repeat-call behavior. The remaining gap is what the response contains for skip/edit versus approve.

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 description coverage is only 20% (only idempotency_key is documented in-schema), so the description carries most of the burden and does: it explains where itemId comes from, what each action enum value does, and how sentence interacts with approve. document_id is never explained, though its uuid format and name make it largely self-evident.

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?

States a specific verb (decides) plus the exact resource scope: one suggestion read from an uploaded document, keyed by itemId from read_company_document or the company_documents entity. This scopes it away from the generic accept_suggestion/dismiss_suggestion siblings without the agent needing to open any schema.

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

Usage Guidelines4/5

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

The three actions are each given a use condition: approve materializes the flow/task, edit rewrites the sentence, skip drops it, and 'approve with sentence applies that edit first' resolves the approve+edit overlap explicitly. It does not explicitly route the agent away to accept_suggestion for non-document suggestions, leaving that inference to the itemId provenance hint.

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