Skip to main content
Glama

merjax_set_ai_workspace_quota

Idempotent

Set a provider workspace's daily spend limit (cents, UTC day) and calls per minute; 0 = no cap at that level (the platform ceiling still applies). Site admins with an admin-scoped token only. Safe to retry: the same numbers again change nothing. Audit-logged. Mirrors PUT /api/v2/admin/ai-workspaces/:workspace/quota. Returns {workspace, dailyCents, rpm, effect: updated|unchanged}.

Input Schema

NameRequiredDescriptionDefault
rpmYesCalls admitted per sliding minute. 0 = no rate limit at this level.
workspaceYesws-control-plane, ws-hosted-loops or ws-ci-gates
daily_centsYesDaily spend limit in cents (UTC day). 0 = no cap at this level; the platform ceiling still applies.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, yet the description still adds real behavior: admin-scoped token requirement, audit logging, the platform-ceiling caveat, and the explicit return payload. 'Safe to retry' largely restates idempotentHint, but the auth and audit context is genuine added value.

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?

Purpose and units are front-loaded, then auth, semantics, retry safety and return shape in tight clauses with no filler. Mild redundancy between 'Safe to retry' and the idempotent annotation, but nothing that buries the essential information.

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?

No output schema exists, and the description compensates by naming the exact return fields (workspace, dailyCents, rpm, effect). Together with the auth requirement, cap semantics, idempotency and audit behavior, an agent has everything needed to call this mutation correctly.

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 description coverage is 100%, so both numeric parameters already document units, bounds and the 0 sentinel. The description reinforces 'cents, UTC day' and 'calls per minute' but adds no syntax or constraints beyond what the schema states, which is the baseline 3 case.

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?

Opens with a specific verb+resource+fields: sets a provider workspace's daily spend limit in cents (UTC day) and calls per minute. The scope (one workspace's quota) is unambiguous and clearly distinct from sibling reads like merjax_list_ai_workspaces, merjax_ai_cost_summary and merjax_get_agent_budget.

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?

Gives the key selection prerequisite — 'Site admins with an admin-scoped token only' — plus the '0 = no cap' convention, which tells an agent how to clear a limit instead of using a separate tool. It does not explicitly name alternatives such as merjax_set_token_bucket or merjax_get_agent_budget, so the routing guidance is implied rather than spelled out.

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