Skip to main content
Glama

Get workspace usage

get_usage
Read-only

Workspace activity counts — signals this month and last, active sources, posts monitored, discovery runs to date, and whether the pipeline is operational. Counts only, no billing figures.

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_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
ctaNoPresent in sample mode: how to get live data.
dataYesThe result, or null when nothing matched.
modeYeslive: the caller's workspace. sample: illustrative data for accounts without an approved workspace.
noticeNoPresent in sample mode: explains that the data is illustrative.
creditsNoPresent in live mode while the workspace is out of credits: the account is paused, and the agent should tell the user how to resume.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / credits
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Present in live mode while the workspace is out of credits: the account is paused, and the agent should tell the user how to resume.",
      +  "properties": {
      +    "agentInstruction": {
      +      "description": "What the agent should do about it.",
      +      "type": "string"
      +    },
      +    "message": {
      +      "description": "What happened, for the agent to pass on.",
      +      "type": "string"
      +    },
      +    "status": {
      +      "enum": [
      +        "exhausted"
      +      ],
      +      "type": "string"
      +    },
      +    "url": {
      +      "description": "Where credits are added or the plan changed.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "status",
      +    "message",
      +    "agentInstruction",
      +    "url"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds genuine context beyond them: the metric categories returned, the time window ('this month and last'), and the scope boundary that no billing figures are included. It does not discuss caching/freshness or cost of the call, which keeps it below a 5.

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?

It is a single front-loaded sentence with no filler, and the scope caveat sits at the end where it is easy to catch. The middle enumeration is dense and partially overlaps what the output schema already conveys, which slightly dilutes value per word.

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 no parameters, an output schema that documents return fields, and annotations covering the safety profile, the description supplies everything needed to select and call it. The only shortfall is the absence of any guidance on when this snapshot should be fetched versus other read tools.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate and the baseline applies. The description correctly does not invent parameter-like concepts (no workspace ID, no date range) that the schema does not support.

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 names a concrete verb+resource (workspace usage) and then enumerates exactly what is reported: signals this month and last, active sources, posts monitored, discovery runs, and pipeline operational status. The explicit exclusion 'Counts only, no billing figures' distinguishes it from what an agent might otherwise assume a usage endpoint returns. This is far more specific than the title alone.

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

Usage Guidelines3/5

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

Usage is implied — an agent can infer this is the tool for a workspace activity/pipeline-health snapshot — but there is no explicit statement of when to call it, when not to, or any alternative to prefer. No prerequisites or freshness expectations are given. Adequate but leaves routing to inference.

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.