Skip to main content
Glama

register_agent

Register a new agent in the budget system with priority and initial token budget. Call once per agent before recording spend or requesting reallocation to enable budget management.

Instructions

Register a new agent in the budget system with a priority weight and an initial token budget. Call this once per agent before recording spend or requesting reallocation for it. Priority is relative: higher priority agents can pull spare budget from equal-or-lower priority agents during reallocation, but budget never flows from a higher-priority agent to a lower-priority one. Re-registering an existing agent_id resets its contract and ledger entry.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idYesUnique identifier for the agent, e.g. 'researcher' or 'writer'.
priorityNoRelative importance; higher number = more important. During reallocation, this agent may only receive tokens from donor agents whose priority is <= this value.
max_tokensNoInitial token budget allocated to this agent.
min_reserveNoMinimum tokens this agent must always retain, even when it is eligible to donate during someone else's reallocation. Defaults to 10% of max_tokens if omitted.
confidence_thresholdNoOptional 0-1 confidence threshold. Once a recorded spend for this agent reports a confidence at or above this value, further spend requests are blocked by the confidence gate. Omit to disable.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure, and it does well: it explains the relative priority semantics (higher priority pulls from equal-or-lower, never the reverse) and explicitly discloses that re-registering resets the contract and ledger entry — a destructive repeat-call consequence. No contradiction with annotations since none exist.

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?

Three dense sentences, front-loaded with the primary purpose in the first sentence. The priority semantics and reset behavior earn their place and there is no fluff. Slightly dense but well structured for the information conveyed.

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 registration tool with no output schema, the description covers the prerequisite relationship to siblings, the priority flow rules, and the reset-on-reregister consequence — everything an agent needs to call it correctly. Minor gap: no mention of expected return value or success indication, but acceptable without an output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/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. The description mentions 'priority weight' and 'initial token budget', mapping to priority and max_tokens, but adds nothing beyond what the schema already documents for each parameter. The schema itself carries the parameter detail.

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 opening sentence 'Register a new agent in the budget system with a priority weight and an initial token budget' uses a specific verb (register) with a specific resource (agent in budget system) and the key fields. It distinguishes itself from siblings by framing registration as a prerequisite to record_spend and request_reallocation, so an agent can tell it apart from the other four tools.

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?

The description gives explicit sequencing guidance: 'Call this once per agent before recording spend or requesting reallocation for it.' This tells the agent when to use the tool relative to its siblings. It doesn't explicitly state when NOT to use it (e.g., to inspect budget one should use get_budget_snapshot), but the prerequisite framing provides clear enough context.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/swaranshu-borgaonkar/tbc-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server