Skip to main content
Glama

merjax_set_token_bucket

Idempotent

Set the daily model-spend bucket of one of your personal access tokens: daily_cents (1–1000000; 0 = the platform default; -1 = no bucket) or daily_usd ("2.50", "default", "none"). The call that would cross the bucket is refused and the token suspends itself until resumed. Another person's token is not found; a canary token is refused. Safe to retry: the same figure again is unchanged. Needs user scope. Audit-logged. Returns {tokenId, name, dailyCents, bucketCents, bucket, effect}.

Input Schema

NameRequiredDescriptionDefault
token_idYesThe personal access token's id (merjax_list_tokens, GET /api/v2/user/tokens)
daily_usdNoBucket as a person types it: USD a day with cents ("2.50"), "default" or blank for the platform default, "none" for no bucket
daily_centsNoBucket in US cents a day, 1–1000000; 0 = the platform default; -1 = no bucket. Alternative: daily_usd

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations it discloses real consequences: the call that would cross the bucket is refused and the token self-suspends until resumed, the required `user` scope, audit logging, and the exact response fields. This is a mutation tool whose annotations only say readOnly=false, idempotent=true, destructive=false, so the extra disclosure is genuinely load-bearing.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but front-loaded: the action and target come first, then sentinel semantics, then failure/retry behavior, then prerequisites and return shape. Every clause carries information an agent would otherwise have to discover by trial.

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 no output schema, the description supplies the return field list itself, plus auth scope, idempotency, and error semantics. For a three-parameter mutation tool this is complete enough to call correctly on the first attempt.

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 both bucket parameters and their sentinel values (0, -1, 'default', 'none') are already documented in the schema, including the note that daily_usd is an alternative. The description restates those ranges and formats rather than adding new meaning, though it does flag that the call is keyed to a single token.

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 specific verb and resource ('Set the daily model-spend bucket of one of your personal access tokens') plus the exact quantity being set, which cleanly separates it from workspace-level siblings like merjax_set_ai_workspace_quota or token-lifecycle siblings like merjax_rotate_token and merjax_resume_token.

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 gives solid operating context: which token class is valid, that another person's token resolves to not-found, that a canary token is refused, and that repeating the same figure is a no-op. It stops short of explicit routing guidance such as 'use merjax_get_agent_budget to inspect a budget' or when to prefer daily_cents over daily_usd as a workflow choice.

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.

Resources