Skip to main content
Glama

Vira – Create, Teach & Manage AI Behavior

write_control_api

Call one registered effectful Control API operation not promoted to a first-class MCP tool. Server authorization and receipts still apply. Use only after the preceding resource and authority prerequisites are satisfied; inspect the server receipt before continuing. Required fields: organizationId, projectId, environmentId, operationId, body. The authenticated MCP session supplies the tenant scope; any supplied scope identifiers must match it. Unknown fields are rejected. This changes governed state and remains fail-closed behind server authorization and an auditable receipt.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "operationId": "<operationId>",
      "body": "<body>"
    },
    "name": "write_control_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesDocumented body input for write_control_api; use the published type and keep customer data within the authenticated scope.
queryNoDocumented query input for write_control_api; use the published type and keep customer data within the authenticated scope.
projectIdNoAuthenticated customer scope identifier; must match the API key scope and is never inferred from model text.
pathParamsNoDocumented pathParams input for write_control_api; use the published type and keep customer data within the authenticated scope.
operationIdYesPublished Control API operationId; it must resolve to a registered route for this surface.
environmentIdNoAuthenticated customer scope identifier; must match the API key scope and is never inferred from model text.
organizationIdNoAuthenticated customer scope identifier; must match the API key scope and is never inferred from model text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations, it discloses that this mutates governed state, that it is fail-closed behind server authorization, that an auditable receipt is produced, that scope identifiers must match the authenticated session, and that unknown fields are rejected. These are substantive operational facts not derivable from readOnlyHint=false alone. It does not describe failure modes, error surfacing, or what the receipt contains, which keeps it off 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.

Conciseness3/5

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

The opening sentence and the prerequisite sentence are well front-loaded, but authorization-and-receipt is stated twice ('Server authorization and receipts still apply' and again in the closing sentence), and 'fail-closed' is asserted without explaining what it means in practice. The paragraph is denser than its content warrants.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description tells the agent to inspect the receipt without saying what the response contains or how errors are returned, which is a real gap for a generic mutation dispatch tool. It does cover the crucial safety envelope (scope match, unknown-field rejection, fail-closed authorization), but the required-fields mismatch with the schema leaves the caller with unresolved ambiguity.

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 schema already carries parameter meaning, and the description adds genuine semantics about scope identifiers matching the session and unknown fields being rejected. However, its stated 'Required fields' list (organizationId, projectId, environmentId, operationId, body) conflicts with the schema, which requires only operationId and body, and it never mentions the query or pathParams properties at all.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: call one registered effectful Control API operation, explicitly limited to operations not promoted to a first-class MCP tool. That scope clause is what separates it from the generic read sibling, though the read/write split with read_control_api is left implicit rather than named.

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 a real precondition ('use only after the preceding resource and authority prerequisites are satisfied') and a follow-up obligation ('inspect the server receipt before continuing'), plus the selection condition that the operation must not already be a first-class tool. It stops short of naming the alternative tool or stating when not to reach for this escape hatch at all.

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