Skip to main content
Glama

Get Wiro account balance and workspace

get_account
Read-onlyIdempotent

Check workspace type, wallet balance, team role, and spend limits before paid work; optionally list recent transactions to verify charges or credits.

Instructions

Show which workspace the connected project belongs to (personal, or a team) and that workspace's wallet balance. Everything run or bought through this connection is charged to this wallet. In a team it also gives the team role calls act with, admin or member. Use it before paid work and when a call is refused for insufficient balance. With recent_transactions it also lists the wallet's latest transactions, the rows the Transactions page of the Wiro dashboard shows, which is how to check that a charge or a credit landed. A USAGE (AGENT PLAN) row is AI usage an agent's plan covered: it moved no money, so it is no charge. In a team the wallet is shared, so the list holds the activity of the whole team. It also lists the workspace's spend limits and says whether this connection can change Spend Limits and Model Access rules (get_controls shows the rules).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
transactions_startNoHow many of the latest rows to skip, from nextStart in the last answer. Without recent_transactions it lists 20 rows.
recent_transactionsNoAlso list this many of the wallet's latest transactions, newest first (1 to 50). Leave it out to read only the balance.

Output Schema

NameRequiredDescriptionDefault
balanceYes
authModeYes
controlsNo
workspaceYes
spendLimitsNoThe workspace's spend limits with what each has used this period. A used-up limit refuses new work with error code 93 even when the wallet has money.
transactionsNo
spendLimitsErrorNoWhy the spend limits could not be read, when the balance could.
transactionsErrorNoWhy the transactions could not be read, when the balance could.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv2.0.0
    • changedOutput schema / properties / spendLimits / items / properties / scope / description
      Previous value: -"What the limit caps: the whole wallet (account), one team member, one API key (project), one way in (surface: web, api, mcp, llm-gateway, extension, agent) or one agent."New value: +"What the limit caps: the whole wallet (account), one team member, one API key (project), one way in (surface: web, api, mcp, llm-gateway, extension, agent, studio, workflow-agent, workflow) or one agent."
    • changedOutput schema / properties / transactions / properties / rows / items / properties / direction / description
      Previous value: -"Whether the row adds to the wallet or takes from it."New value: +"Whether the row adds to the wallet or takes from it. Absent when inPlan is true."
    • addedOutput schema / properties / transactions / properties / rows / items / properties / inPlan
      Added value: +{
      +  "description": "True on a USAGE (AGENT PLAN) row: AI usage an agent's plan covered, listed for the record. No money moved, so leave it out of any total.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / transactions / properties / rows / items / properties / surface
      Added value: +{
      +  "description": "The way in that made the charge, as Spend Limits count it. Older rows have none.",
      +  "enum": [
      +    "web",
      +    "api",
      +    "mcp",
      +    "llm-gateway",
      +    "extension",
      +    "agent",
      +    "studio",
      +    "workflow-agent",
      +    "workflow"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / transactions / properties / rows / items / properties / type / description
      Previous value: -"The row's type as the wallet page names it, such as PAYMENT, PAYMENT (COUPON), DEPOSIT or TRANSFER IN."New value: +"The row's type as the wallet page names it, such as PAYMENT, PAYMENT (COUPON), DEPOSIT, TRANSFER IN or USAGE (AGENT PLAN)."
    • changedOutput schema / properties / transactions / properties / rows / items / required
      Previous value: -[
      -  "type",
      -  "direction",
      -  "amountUsd"
      -]New value: +[
      +  "type",
      +  "amountUsd"
      +]
  2. Changed3 schema fields changedv1.9.0
    • addedOutput schema / properties / controls
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "canManage": {
      +      "description": "Whether this connection can change the Spend Limits and Model Access rules.",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "canManage"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / spendLimits
      Added value: +{
      +  "description": "The workspace's spend limits with what each has used this period. A used-up limit refuses new work with error code 93 even when the wallet has money.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "amountUsd": {
      +        "type": "number"
      +      },
      +      "heldUsd": {
      +        "description": "Held by work that is still running, until it is charged or ends.",
      +        "type": "number"
      +      },
      +      "period": {
      +        "description": "Monthly limits reset on the 1st, daily ones at 00:00 UTC.",
      +        "enum": [
      +          "month",
      +          "day"
      +        ],
      +        "type": "string"
      +      },
      +      "resetsAt": {
      +        "type": "string"
      +      },
      +      "scope": {
      +        "description": "What the limit caps: the whole wallet (account), one team member, one API key (project), one way in (surface: web, api, mcp, llm-gateway, extension, agent) or one agent.",
      +        "enum": [
      +          "account",
      +          "member",
      +          "project",
      +          "surface",
      +          "agent"
      +        ],
      +        "type": "string"
      +      },
      +      "spentUsd": {
      +        "description": "Spent in the current period.",
      +        "type": "number"
      +      },
      +      "target": {
      +        "description": "The member's uuid, the project id, the surface or the agent guid; absent for the whole wallet.",
      +        "type": "string"
      +      },
      +      "targetName": {
      +        "type": "string"
      +      },
      +      "usedUp": {
      +        "description": "True when new work this limit covers is refused (error code 93).",
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "scope",
      +      "period",
      +      "amountUsd",
      +      "spentUsd",
      +      "usedUp"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / spendLimitsError
      Added value: +{
      +  "description": "Why the spend limits could not be read, when the balance could.",
      +  "type": "string"
      +}
  3. Changed5 schema fields changedv1.5.3
    • addedInput schema / properties / transactions_start / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / transactions / properties / limit / maximum
      Added value: +9007199254740991
    • changedOutput schema / properties / transactions / properties / nextStart / anyOf
      Previous value: -[
      -  {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / transactions / properties / start / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / transactions / properties / total / maximum
      Added value: +9007199254740991
  4. Changed5 schema fields changedv1.5.1
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / recent_transactions
      Added value: +{
      +  "description": "Also list this many of the wallet's latest transactions, newest first (1 to 50). Leave it out to read only the balance.",
      +  "maximum": 50,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / transactions_start
      Added value: +{
      +  "description": "How many of the latest rows to skip, from nextStart in the last answer. Without recent_transactions it lists 20 rows.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / transactions
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "limit": {
      +      "exclusiveMinimum": 0,
      +      "type": "integer"
      +    },
      +    "nextStart": {
      +      "anyOf": [
      +        {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "rows": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "agentGuid": {
      +            "type": "string"
      +          },
      +          "amountUsd": {
      +            "description": "The amount in USD, always positive; direction gives the sign.",
      +            "type": "number"
      +          },
      +          "description": {
      +            "type": "string"
      +          },
      +          "direction": {
      +            "description": "Whether the row adds to the wallet or takes from it.",
      +            "enum": [
      +              "in",
      +              "out"
      +            ],
      +            "type": "string"
      +          },
      +          "discountUsd": {
      +            "type": "number"
      +          },
      +          "expiresAt": {
      +            "description": "For credit that can be spent only for a while: when it ends.",
      +            "type": "string"
      +          },
      +          "model": {
      +            "type": "string"
      +          },
      +          "project": {
      +            "type": "string"
      +          },
      +          "store": {
      +            "type": "string"
      +          },
      +          "taskId": {
      +            "type": "string"
      +          },
      +          "time": {
      +            "type": "string"
      +          },
      +          "type": {
      +            "description": "The row's type as the wallet page names it, such as PAYMENT, PAYMENT (COUPON), DEPOSIT or TRANSFER IN.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "type",
      +          "direction",
      +          "amountUsd"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "start": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "total": {
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "total",
      +    "start",
      +    "limit",
      +    "nextStart",
      +    "rows"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / transactionsError
      Added value: +{
      +  "description": "Why the transactions could not be read, when the balance could.",
      +  "type": "string"
      +}
  5. Addedv1.4.1

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, it discloses billing semantics (everything run or bought through the connection is charged to this wallet), that team wallets are shared so the transaction list covers the whole team, and that USAGE (AGENT PLAN) rows move no money and are not charges. It also reports whether the connection is permitted to change Spend Limits and Model Access rules, which the annotations cannot express.

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?

The core purpose leads the paragraph and every clause carries information, including the non-obvious USAGE-row caveat and the shared-team-wallet note. It is still a single dense block with some embedded asides (the dashboard comparison, the get_controls pointer) that could be split for faster scanning.

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?

With an output schema present, return formatting need not be described, and the description still covers role context, spend-limit visibility, edit permissions, and transaction semantics. For a two-optional-parameter read tool, an agent has everything needed to decide when to call it and how to read the results.

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 description coverage is 100%, so the baseline is 3, but the description adds meaning: it explains that recent_transactions surfaces the same rows as the dashboard's Transactions page and clarifies how to interpret them (USAGE rows, team-wide activity). It says less about the pagination offset itself, which the schema already documents.

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?

The description gives a concrete verb-and-resource pair: it shows the workspace the connection belongs to and that workspace's wallet balance, plus team role, spend limits, and optionally recent transactions. It explicitly separates itself from get_controls by saying get_controls shows the Model Access and Spend Limits rules, so an agent can distinguish the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states two concrete triggers: use it before paid work, and when a call is refused for insufficient balance. It also explains the diagnostic use case (checking that a charge or credit landed via recent_transactions) and points to get_controls for the underlying rules, so both when-to-use and the nearest alternative are covered.

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