Skip to main content
Glama

get_agent_activity

Buyer-facing agent activity ledger: a summary (by_action + errors) plus a reverse-chron, cursor-paginated feed. Pass agent_user_id for one agent's ledger (the US-2 'Claude Drafter: 47 drafts, 3 card-moves, 0 errors in 24h' view); omit it for the all-agents org rollup. window is '24h' or '7d'; board_id scopes the feed to one client board. Owner/admin only; per-agent reads require a kind='agent' member of org_id. GATED to the Scale/Agency tier (403 governance_not_entitled otherwise). Mirrors GET /v1/orgs/{org_id}/agents/{agent_user_id}/activity and GET /v1/orgs/{org_id}/agents/activity.

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": {
      "org_id": "<org_id>"
    },
    "name": "get_agent_activity"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
cursorNo
org_idYes
windowNo24h
board_idNo
agent_user_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: owner/admin only, per-agent reads require a kind='agent' member of org_id, and the tool is gated to the Scale/Agency tier returning 403 governance_not_entitled otherwise. It also discloses ordering (reverse-chron) and pagination (cursor) — exactly the behavioral context an agent needs before calling.

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 what it returns, then mode selection, then constraints and gating — a logical order with little waste. The trailing REST endpoint mirror is slightly verbose but useful for cross-referencing; the US-2 example is illustrative rather than filler.

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?

An output schema exists, so return-value detail is rightly omitted, and the description covers auth, tier gating, ordering, pagination, and mode selection. The only meaningful gap is that limit/cursor defaults and page-size behavior are not described, which matters for a paginated feed.

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 0%, so the description must compensate, and it explains agent_user_id's dual role, window's allowed values, board_id's scoping, and cursor-based pagination. The limit parameter's meaning and defaults are never addressed in the description or schema, leaving one of six params undocumented.

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 ("agent activity ledger") and enumerates what it returns: a summary broken down by_action + errors plus a reverse-chron cursor-paginated feed. It also sharply distinguishes the two modes (single-agent via agent_user_id vs all-agents org rollup), so an agent can tell it apart from the clear_card_agent_activity / set_card_agent_activity siblings.

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?

Gives explicit mode selection: pass agent_user_id for one agent's ledger, omit it for the org rollup, and use board_id to scope the feed to a single client board. It also constrains window to '24h' or '7d'. It never names a sibling tool as an alternative, so it's clear context without explicit exclusion routing.

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