Skip to main content
Glama

Pending review, grouped by counterparty

get_pending_by_counterparty
Read-only

Summarises the review queue clustered by counterparty and direction — the exact grain a rule is keyed on. Each group carries the counterparty_key, a human label, direction (inbound = money in, outbound = money out), how many events, and their total in cents. Lets you decide once per vendor instead of per transaction: read this, then call create_counterparty_rule to categorise a whole counterparty (existing pending events and all future ones) in one step. Groups are ordered largest-first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
org_idNoOptional. Defaults to the organisation the authenticated API key is bound to, so you normally omit it and never need to ask the user for their organisation UUID. If provided, it must match the key’s org or the request is rejected.0e91146d-511c-469f-bdee-5c867b26ae0d

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description adds useful behavior: grouping, direction semantics ('inbound = money in, outbound = money out'), aggregate fields, and 'Groups are ordered largest-first'. This goes well beyond the annotation without contradicting it.

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 sentences deliver the core purpose, the output contents, the direction semantics, the ordering, and the intended follow-up action. Every sentence earns its place and the main function is front-loaded.

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

Completeness5/5

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

For a read-only summary tool with one optional parameter and an output schema, this description is complete. It tells the agent what the response contains, how it is ordered, and how to act on it, leaving no critical gap.

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 100% and the only parameter, org_id, is fully documented in the input schema. The tool description adds no extra parameter-level meaning, so the baseline 3 is appropriate.

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: 'Summarises the review queue clustered by counterparty and direction'. It also explains the exact grain ('the exact grain a rule is keyed on'), which clearly distinguishes it from per-transaction review tools like get_unreviewed_events.

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

Usage Guidelines5/5

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

Explicitly gives the usage pattern: read this summary to decide once per vendor, then call create_counterparty_rule to categorise a whole counterparty. It contrasts this with deciding 'per transaction', so an agent knows when this tool is the right choice.

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