Skip to main content
Glama

Accept suggestions

accept-suggestions
Destructive

Take the suggestion on every open bank line the filters select, oldest first: each is classified to its suggested_element_id through the same update a single line goes through, and posted too with commit: true. Select by source, agent_id, suggestion_source (agent_default for the learned ones), a date range, or explicit event_ids from a multi-select. A line it cannot take — no suggestion to take, already classified or posted, a closed month, a choice the handler refuses — comes back skipped with the reason, never forced. dry_run: true reports the counts without writing; limit bounds a call and truncated says more matched.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "accept-suggestions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoAt most this many lines per call, oldest first; `truncated` in the response says whether more matched.
commitNoPost each taken line as well (captured → committed). Off, the lines are classified and wait for a person to post them.
sourceNoOnly lines from this feed (`plaid`, `mercury`).
dry_runNoReport what each line would do without writing. A closed month is found only when a line actually posts, so a real run can still skip one a dry run counted.
agent_idNoOnly one counterparty's lines.
entity_idNoThe entity whose inbox to act on. Omit for the group parent.
event_idsNoExplicit lines, as from the inbox's multi-select; each is answered, even one that cannot be taken. The other filters still narrow them.
occurred_toNoOnly lines dated on or before this day.
occurred_fromNoOnly lines dated on or after this day.
suggestion_sourceNoOnly lines whose suggestion came from here: `open_item` (an open bill or invoice the line pays exactly), `agent_default` (the counterparty's learned default) or `tier0` (the bank's category).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well past the annotations (destructive, non-idempotent, not read-only): it discloses oldest-first processing, per-line commit behavior, that untakeable lines return 'skipped' with a reason rather than being forced, and that a closed month can only surface on a real posting run. That is precisely the mutation and failure semantics an agent needs before calling a destructive tool.

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?

Front-loads the action and ordering, then selection, then failure handling, then the escape hatches (dry_run, limit). Four dense sentences with no filler; every clause carries operational 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 10-parameter mutation tool with no output schema, the description covers the essential gaps: skip reasons, the dry_run caveat about closed months, and the truncated/counts signal. It stops short of describing the overall response shape or the entity_id default, leaving a small remainder.

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%, so limit, commit, dry_run, event_ids and suggestion_source are already documented in structured fields, and the description largely echoes them (e.g. 'agent_default for the learned ones', 'limit bounds a call', 'truncated says more matched'). It adds only modest framing about how filters compose, so the baseline of 3 applies.

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 and resource ('Take the suggestion on every open bank line'), plus scope and ordering ('oldest first'). It also distinguishes itself from the single-line path by explaining each line goes through 'the same update a single line goes through,' so an agent can tell it apart from a one-line accept tool.

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?

Explains how to select lines (source, agent_id, suggestion_source, date range, event_ids) and when to reach for dry_run or limit. It falls short of naming a sibling as the alternative and gives no explicit 'do not use when' clause, so the guidance is clear but not complete.

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.