Get a Wiro agent's usage or activity log
get_agent_activityRead 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
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | logs only: the UTC day as YYYY-MM-DD (default today). | |
| kind | No | usage for credits and spending, logs for one day of activity, log_dates for the days that have a log. | usage |
| limit | No | usage only: ledger rows to return (default 50, max 200). | |
| lines | No | logs only: how many of the newest events to return (default 100, max 300). | |
| start | No | usage only: offset into the ledger, newest first (default 0). | |
| agent_guid | Yes | The deployed agent's guid, from list_my_agents or deploy_agent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| logs | No | ||
| usage | No | ||
| logDates | No | ||
| agentGuid | Yes | ||
| nextAction | No |