Skip to main content
Glama

Get a Wiro agent's usage or activity log

get_agent_activity
Read-onlyIdempotent

Retrieve a deployed agent's activity: monthly spending and ledger, one day of logs, or dates with logs. Use it to audit usage, tool calls, errors, and plan charges by amount.

Instructions

Read what a deployed agent has done and spent. kind usage returns this month's spending in USD (AI usage the plan covered and from the Wiro balance, model runs, funds added) and the agent's ledger, newest first: AI usage with its model and tokens by kind, the model runs it started, plan payments and funds added from its page, each with its amount and what paid it (the plan, the balance, a card or a coupon). 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 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 spending and the ledger, 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).
entriesNousage only: which ledger rows: all (default), ai-usage, model-run, plan or funds.all
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. Changed29 schema fields changedv2.0.0
    • addedInput schema / properties / entries
      Added value: +{
      +  "default": "all",
      +  "description": "usage only: which ledger rows: all (default), ai-usage, model-run, plan or funds.",
      +  "enum": [
      +    "all",
      +    "ai-usage",
      +    "model-run",
      +    "plan",
      +    "funds"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / kind / description
      Previous value: -"usage for credits and spending, logs for one day of activity, log_dates for the days that have a log."New value: +"usage for spending and the ledger, logs for one day of activity, log_dates for the days that have a log."
    • addedOutput schema / properties / logs / properties / events / items / properties / costEstimate
      Added value: +{
      +  "description": "true when costUsd is an estimate: the turn's model calls priced at the agent's rates, not what was billed. Wiro marks it so when it measures the agent's model calls itself. What was billed is in the agent's ai-usage rows (kind usage), which add calls up across turns, carry what is left under a cent to the next row and can count calls the turn's row does not. Absent when costUsd is what was billed.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / logs / properties / events / items / properties / costUsd
      Added value: +{
      +  "description": "What the event cost, in USD. An estimate, not what was billed, when costEstimate is true.",
      +  "type": "number"
      +}
    • removedOutput schema / properties / logs / properties / events / items / properties / credits
      Removed value: -{
      -  "type": "number"
      -}
    • removedOutput schema / properties / logs / properties / events / items / properties / remainingCredits
      Removed value: -{
      -  "type": "number"
      -}
    • addedOutput schema / properties / logs / properties / events / items / properties / status
      Added value: +{
      +  "description": "On a tool call that neither ran nor failed, in place of ok and error: held, a Connector action that waits for a person's approval on its approval card, paused, a call refused while a person had Take Control of the agent's screen, or blocked, a Connector action refused because its permission is Block.",
      +  "enum": [
      +    "held",
      +    "paused",
      +    "blocked"
      +  ],
      +  "type": "string"
      +}
    • removedOutput schema / properties / usage / properties / balance
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "extraCredits": {
      -      "type": "number"
      -    },
      -    "monthlyCredits": {
      -      "description": "The monthly credits this period grants. A plan change inside a period moves it for the time left.",
      -      "type": "number"
      -    },
      -    "period": {
      -      "type": "string"
      -    },
      -    "remainingCredits": {
      -      "type": "number"
      -    },
      -    "renewalCredits": {
      -      "description": "The monthly credits each renewal grants.",
      -      "type": "number"
      -    },
      -    "usedCredits": {
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "monthlyCredits",
      -    "extraCredits",
      -    "usedCredits",
      -    "remainingCredits"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / usage / properties / byModel
      Removed value: -{
      -  "items": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "credits": {
      -        "type": "number"
      -      },
      -      "model": {
      -        "type": "string"
      -      },
      -      "tokens": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "cacheRead": {
      -            "type": "number"
      -          },
      -          "cacheWrite": {
      -            "type": "number"
      -          },
      -          "input": {
      -            "type": "number"
      -          },
      -          "output": {
      -            "type": "number"
      -          },
      -          "total": {
      -            "type": "number"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "turns": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "model",
      -      "tokens",
      -      "credits",
      -      "turns"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / usage / properties / entries
      Added value: +{
      +  "enum": [
      +    "all",
      +    "ai-usage",
      +    "model-run",
      +    "plan",
      +    "funds"
      +  ],
      +  "type": "string"
      +}
    • removedOutput schema / properties / usage / properties / extraPacks
      Removed value: -{
      -  "items": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "credits": {
      -        "type": "number"
      -      },
      -      "purchasedAt": {
      -        "type": "string"
      -      },
      -      "remainingCredits": {
      -        "type": "number"
      -      },
      -      "status": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "credits",
      -      "remainingCredits"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / usage / properties / summary
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "aiUsageBalanceUsd": {
      +      "description": "AI usage this month paid from the Wiro balance.",
      +      "type": "number"
      +    },
      +    "aiUsagePlanUsd": {
      +      "description": "AI usage this month that the plan covered, over every plan period the month holds.",
      +      "type": "number"
      +    },
      +    "fundsAddedUsd": {
      +      "description": "Funds added to the balance from the agent's page this month.",
      +      "type": "number"
      +    },
      +    "includedUsd": {
      +      "description": "The AI usage the plan includes each plan period, renewal to renewal, not a calendar month's: a month that holds a renewal can show more AI usage the plan covered than this.",
      +      "type": "number"
      +    },
      +    "legacy": {
      +      "description": "true when Wiro answered without these amounts, so they were worked out from its older fields: month is then the plan period, and both amounts count that period.",
      +      "type": "boolean"
      +    },
      +    "modelRunsUsd": {
      +      "description": "Model runs the agent started this month.",
      +      "type": "number"
      +    },
      +    "month": {
      +      "description": "The calendar month (UTC), as YYYY-MM, that every amount but includedUsd covers.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • removedOutput schema / properties / usage / properties / transactions / items / properties / action
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / usage / properties / transactions / items / properties / amountUsd
      Added value: +{
      +  "description": "Absent when Wiro kept no amount: a plan payment recorded before Wiro kept what was paid.",
      +  "type": "number"
      +}
    • removedOutput schema / properties / usage / properties / transactions / items / properties / balanceAfter
      Removed value: -{
      -  "type": [
      -    "number",
      -    "null"
      -  ]
      -}
    • addedOutput schema / properties / usage / properties / transactions / items / properties / costs
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "What each kind of token cost, in USD, before the row was rounded to whole cents.",
      +  "properties": {
      +    "cacheRead": {
      +      "type": "number"
      +    },
      +    "cacheWrite": {
      +      "type": "number"
      +    },
      +    "input": {
      +      "type": "number"
      +    },
      +    "output": {
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • removedOutput schema / properties / usage / properties / transactions / items / properties / credits
      Removed value: -{
      -  "type": "number"
      -}
    • removedOutput schema / properties / usage / properties / transactions / items / properties / description
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / usage / properties / transactions / items / properties / direction
      Added value: +{
      +  "description": "out for spending, in for funds added.",
      +  "enum": [
      +    "out",
      +    "in"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / usage / properties / transactions / items / properties / kind
      Added value: +{
      +  "description": "ai-usage (the agent's chat and scheduled tasks), model-run (a model the agent ran), plan (a plan payment) or funds (funds added from the agent's page). A row from an older Wiro release keeps the type it was recorded with.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / usage / properties / transactions / items / properties / legacy
      Added value: +{
      +  "description": "A row recorded before agents were billed in USD, shown in USD.",
      +  "type": "boolean"
      +}
    • removedOutput schema / properties / usage / properties / transactions / items / properties / paidBy
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / usage / properties / transactions / items / properties / paidFrom
      Added value: +{
      +  "description": "plan (the usage the plan includes), balance (the Wiro balance), card or coupon.",
      +  "type": "string"
      +}
    • removedOutput schema / properties / usage / properties / transactions / items / properties / processedMs
      Removed value: -{
      -  "type": "number"
      -}
    • addedOutput schema / properties / usage / properties / transactions / items / properties / surface
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / usage / properties / transactions / items / properties / title
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / usage / properties / transactions / items / properties / type
      Removed value: -{
      -  "type": "string"
      -}
    • changedOutput schema / properties / usage / properties / transactions / items / required
      Previous value: -[
      -  "type",
      -  "credits",
      -  "balanceAfter"
      -]New value: +[
      +  "kind"
      +]
    • changedOutput schema / properties / usage / required
      Previous value: -[
      -  "total",
      -  "start",
      -  "limit",
      -  "nextStart",
      -  "balance",
      -  "extraPacks",
      -  "byModel",
      -  "transactions"
      -]New value: +[
      +  "total",
      +  "start",
      +  "limit",
      +  "nextStart",
      +  "entries",
      +  "summary",
      +  "transactions"
      +]
  2. Changed12 schema fields changedv1.5.3
    • addedInput schema / properties / start / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / logs / properties / events / items / properties / tokens / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / logs / properties / totalLines / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / nextAction / properties / arguments / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / usage / properties / limit / maximum
      Added value: +9007199254740991
    • changedOutput schema / properties / usage / properties / nextStart / anyOf
      Previous value: -[
      -  {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / usage / properties / start / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / usage / properties / total / maximum
      Added value: +9007199254740991
    • removedOutput schema / properties / usage / properties / transactions / items / properties / tokens / $ref
      Removed value: -"#/properties/usage/properties/byModel/items/properties/tokens"
    • addedOutput schema / properties / usage / properties / transactions / items / properties / tokens / additionalProperties
      Added value: +false
    • addedOutput schema / properties / usage / properties / transactions / items / properties / tokens / properties
      Added value: +{
      +  "cacheRead": {
      +    "type": "number"
      +  },
      +  "cacheWrite": {
      +    "type": "number"
      +  },
      +  "input": {
      +    "type": "number"
      +  },
      +  "output": {
      +    "type": "number"
      +  },
      +  "total": {
      +    "type": "number"
      +  }
      +}
    • addedOutput schema / properties / usage / properties / transactions / items / properties / tokens / type
      Added value: +"object"
  3. Changed7 schema fields changedv1.5.1
    • addedOutput schema / properties / logDates / properties / available / description
      Added value: +"true when dates holds every day that has a log. false when the agent's own log days could not be read: dates then holds only the days on which someone changed the agent, if any."
    • addedOutput schema / properties / logDates / properties / runtimeUnavailable
      Added value: +{
      +  "description": "Why the agent's own log days could not be read: it is not running, or it did not answer.",
      +  "enum": [
      +    "not_running",
      +    "no_answer"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / logs / properties / events / items / properties / actor
      Added value: +{
      +  "description": "On a row that says who changed the agent: the person's name, when Wiro sends one.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / logs / properties / events / items / properties / cancelled
      Added value: +{
      +  "description": "A turn the caller cancelled, which is neither a success nor a failure.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / logs / properties / events / items / properties / fields
      Added value: +{
      +  "description": "On a row that says who changed the agent: the fields it changed, as Wiro lists them. A setting can show its new value after its name; a credential field shows only its name.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / usage / properties / balance / properties / monthlyCredits / description
      Added value: +"The monthly credits this period grants. A plan change inside a period moves it for the time left."
    • addedOutput schema / properties / usage / properties / balance / properties / renewalCredits
      Added value: +{
      +  "description": "The monthly credits each renewal grants.",
      +  "type": "number"
      +}
  4. Addedv1.4.1

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations it discloses authorization requirements, explicit redaction guarantees (never a credential value or an instruction's text, no emails or user ids), and a data-completeness caveat that log_dates may be missing days. A large middle portion instead restates returned fields, which the output schema already covers, so it is rich but partly redundant.

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 opening clause is well front-loaded, but the body is one dense run-on paragraph mixing mode semantics, return contents, redaction, and permissions with no sub-structure. Most sentences carry information, yet the lack of separation makes the kind-specific details hard to scan.

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 read-only tool with a full output schema and seven parameters, it covers the things an agent still needs: mode selection, authorization, redaction, and data-availability caveats. The aside "start it only if the user agrees" is left cryptic about what exactly would be started, which is the one loose end.

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, but the description goes further by unpacking what each kind value actually yields (spending components, ledger ordering newest-first, per-day activity contents, what plan-recorded events look like). It adds little for limit/start/entries/lines beyond the schema's own descriptions.

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?

"Read what a deployed agent has done and spent" gives a specific verb plus resource, and the description then enumerates the three distinct modes (usage, logs, log_dates) with what each returns. An agent can distinguish this from conversation/message readers like get_agent_conversation without opening a schema.

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 states the selection condition for each kind and adds real gating context: logs and usage need a team admin or the deployer on a team agent, the org owner can read usage, and other members are refused. It also notes logs of who-changed-what remain readable while the agent is stopped and its own lines are readable while running or in error. It never names a sibling tool as an alternative, so it stops short of full routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.