Skip to main content
Glama

Agent activity

agent-activity
Read-onlyIdempotent

Fetch recent events and transactions for a counterparty.

WHEN TO USE:

  • To review a customer's or vendor's event history

  • To answer "what has happened with this counterparty?"

  • To find all transactions triggered by events from this agent

  • AR/AP analysis starting from a specific counterparty

PARAMETERS:

  • id (required): Agent id (agt_ prefixed ULID)

  • entity_id (optional): the entity whose dealings with this counterparty to read; omit for the group parent. The group shares the counterparty, and each entity's events with it are its own

  • limit (optional, default 100, max 1000): max events and transactions returned

RETURNS:

  • agent: full AgentResponse

  • entity_id: the entity the lists and counts are scoped to

  • recent_events: list of EventBlockEnvelopes for this agent (desc by occurred_at)

  • recent_transactions: list of transactions triggered by those events

  • event_count: total event count for this agent

  • transaction_count: total transaction count

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": {
      "id": "<id>"
    },
    "name": "agent-activity"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesAgent id (agt_ prefixed)
limitNo
entity_idNoThe entity whose books this acts on, by id (get-graph-info lists them). Omit for the group parent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely non-schema behavior: events are ordered descending by occurred_at, transaction_count/event_count are totals rather than page sizes, and entity scoping means each entity's event history with the counterparty is distinct. It does not discuss pagination beyond the 1000 cap or authentication.

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?

Header-segmented with the purpose, when-to-use, parameters and returns in a logical order, so it is easy to scan and front-loaded. Some content is redundant with the schema (default 100, max 1000, agt_ prefix), which costs a little efficiency but does not bloat the definition.

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?

There is no output schema, and the definition compensates with a RETURNS block enumerating agent, entity_id, recent_events, recent_transactions and the two totals. With all three parameters explained and the scoping semantics clarified, an agent has everything needed to call this correctly.

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 coverage is 67%, and the description adds real meaning for entity_id — 'omit for the group parent' plus the explanation that the group shares the counterparty while each entity's events are its own — which goes meaningfully past the schema text. The id and limit explanations largely restate the schema (agt_ prefix, default 100, max 1000).

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?

Opens with a specific verb and resource — 'Fetch recent events and transactions for a counterparty' — which is concrete enough that an agent knows it retrieves activity data rather than the agent record itself. It does not explicitly name a sibling tool it contrasts with (e.g., get-agent), so it stops short of full differentiation.

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 WHEN TO USE block gives four concrete triggering scenarios ('review a customer's or vendor's event history', 'AR/AP analysis starting from a specific counterparty'), which is clear positive guidance. There are no 'when not to use' conditions or named alternative tools, so it lands at clear-context-without-exclusions.

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.