Skip to main content
Glama

Get a Wiro agent's usage or activity log

get_agent_activity
Read-onlyIdempotent

Read what a deployed agent has done and spent. kind usage returns the credit balance, usage per model for the current period and the credit ledger (charges, renewals, packs and token usage per turn; 100 credits = 1 USD). kind logs returns the activity log for one day, newest first: the agent's own turns, tool calls, scheduled runs and errors, plus who changed what on the agent, in names and amounts such as the fields saved, a new title or time zone and a plan's price, never a credential value or an instruction's text. Plan events Wiro records by itself show there too, without a person's name, such as a renewal with the amount charged, a card payment, a cancellation in the billing portal or a plan that ended and why. Who changed what can be read while the agent is stopped. Its own lines can be read while it is running or in error, and the first row says when they cannot be read or were deleted (start it only if the user agrees). kind log_dates lists the days that have a log, and says when the list may be missing days. A person's name shows only on a row that says who changed the agent, when Wiro sends one; emails and user ids are never returned. On a team agent, logs and usage need a team admin or the person who deployed it, and the organization's owner can also read usage; other team members are refused.

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

Input Schema

NameRequiredDescriptionDefault
dateNologs only: the UTC day as YYYY-MM-DD (default today).
kindNousage for credits and spending, logs for one day of activity, log_dates for the days that have a log.usage
limitNousage only: ledger rows to return (default 50, max 200).
linesNologs only: how many of the newest events to return (default 100, max 300).
startNousage only: offset into the ledger, newest first (default 0).
agent_guidYesThe deployed agent's guid, from list_my_agents or deploy_agent.

Output Schema

NameRequiredDescriptionDefault
kindYes
logsNo
usageNo
logDatesNo
agentGuidYes
nextActionNo

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?

Annotations already mark this read-only, idempotent and non-destructive, yet the description still adds substantial behavioral context: newest-first ordering, that log reads are blocked while the agent is stopped and the first row reports unreadable/deleted status, that plan events appear without an actor, and explicit disclosure limits (no credential values, no instruction text, no emails or user ids). It also spells out team-admin/owner visibility rules, which is exactly the kind of auth detail annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The lead sentence is well front-loaded, but everything after it is a single dense block with repeated framing (the 'who changed what' idea is restated three times, and 'the first row says when they cannot be read or were deleted' is buried mid-paragraph). Per-kind bullets would have been far easier to scan; several clauses could be tightened without losing 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?

With six parameters, an output schema, and rich annotations, this covers the hard parts an agent needs: mode selection, permission requirements, visibility limits, and degraded-read behavior. Minor gaps remain — the running/stopped/log-deleted sentence is ambiguous about which response row signals what, and pagination semantics for usage beyond the schema are unaddressed.

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 100%, so the baseline is 3, and the description earns an increment by explaining what the kind values actually yield and by adding unit semantics ('100 credits = 1 USD') and the one-day scope of the date parameter. limit, lines and start are left entirely to the schema, so it does not fully compensate above the baseline.

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 ('Read what a deployed agent has done and spent') and then enumerates the three modes (usage / logs / log_dates) with the distinct payload of each. An agent can tell from the first sentence that this is the read-side agent telemetry tool, distinct from siblings like get_agent_conversation or get_my_agent.

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?

It gives clear routing guidance between the three kinds ('kind usage returns the credit balance...', 'kind logs returns the activity log for one day', 'kind log_dates lists the days that have a log') and states the permission gate per role. It also adds an operational rule for the user's benefit ('start it only if the user agrees'). What it lacks is any explicit statement of when to prefer a different sibling tool for related questions.

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.