Skip to main content
Glama

Vira – Create, Teach & Manage AI Behavior

create_behavior_revision_candidate

Create an immutable behavior revision candidate from a reviewed Teach improvement proposal. Use only after the preceding resource and authority prerequisites are satisfied; inspect the server receipt before continuing. Required fields: organizationId, projectId, environmentId, id, sourceTeachProposalId, parentRevisionId, parentRevisionDigest, changeSet. 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": {
      "id": "<id>",
      "sourceTeachProposalId": "<sourceTeachProposalId>",
      "parentRevisionId": "<parentRevisionId>",
      "parentRevisionDigest": "<parentRevisionDigest>",
      "changeSet": "<changeSet>"
    },
    "name": "create_behavior_revision_candidate"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesDocumented id input for create_behavior_revision_candidate; use the published type and keep customer data within the authenticated scope.
changeSetYesDocumented changeSet input for create_behavior_revision_candidate; 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.
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.
parentRevisionIdYesImmutable parentRevisionId reference used to bind this create_behavior_revision_candidate operation to the correct released or persisted resource.
parentRevisionDigestYesImmutable parentRevisionDigest reference used to bind this create_behavior_revision_candidate operation to the correct released or persisted resource.
sourceTeachProposalIdYesImmutable sourceTeachProposalId reference used to bind this create_behavior_revision_candidate operation to the correct released or persisted resource.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / changeSet / description
      Added value: +"Documented changeSet input for create_behavior_revision_candidate; use the published type and keep customer data within the authenticated scope."
    • addedInput schema / properties / environmentId / description
      Added value: +"Authenticated customer scope identifier; must match the API key scope and is never inferred from model text."
    • addedInput schema / properties / id / description
      Added value: +"Documented id input for create_behavior_revision_candidate; use the published type and keep customer data within the authenticated scope."
    • addedInput schema / properties / organizationId / description
      Added value: +"Authenticated customer scope identifier; must match the API key scope and is never inferred from model text."
    • addedInput schema / properties / parentRevisionDigest / description
      Added value: +"Immutable parentRevisionDigest reference used to bind this create_behavior_revision_candidate operation to the correct released or persisted resource."
    • addedInput schema / properties / parentRevisionId / description
      Added value: +"Immutable parentRevisionId reference used to bind this create_behavior_revision_candidate operation to the correct released or persisted resource."
    • addedInput schema / properties / projectId / description
      Added value: +"Authenticated customer scope identifier; must match the API key scope and is never inferred from model text."
    • addedInput schema / properties / sourceTeachProposalId / description
      Added value: +"Immutable sourceTeachProposalId reference used to bind this create_behavior_revision_candidate operation to the correct released or persisted resource."
  2. First observed

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 the result is immutable, that the call is fail-closed behind server authorization, that it produces an auditable receipt, and that unknown fields are rejected. That is meaningful governance context an agent would not get from readOnlyHint=false / destructiveHint=false alone. It does not cover idempotency or retry behavior, which matters given idempotentHint=false.

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?

It is front-loaded with the core verb and resource, which is good. The enumerated required-field list repeats the schema's required array and consumes space that could have described the changeSet payload instead.

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?

For a mutating, non-idempotent tool with a nested changeSet object, the description says nothing about what changeSet must contain, even though the schema types it only as a bare object. The pointer to inspect the server receipt partly compensates for the absent output schema, but the payload shape is a genuine gap.

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 all eight parameters already carry descriptions and the baseline is 3. The description restates the required field list and adds one real constraint ('the authenticated MCP session supplies the tenant scope; any supplied scope identifiers must match it'), which largely duplicates what the schema already says about API key scope.

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 artifact ('Create an immutable behavior revision candidate') and names its input source ('from a reviewed Teach improvement proposal'), which separates it from accept_/evaluate_behavior_revision_candidate siblings. It stops short of explicitly contrasting itself with those adjacent lifecycle 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?

It gives a clear precondition gate ('Use only after the preceding resource and authority prerequisites are satisfied') and a follow-up action ('inspect the server receipt before continuing'). It does not name the alternative tools an agent might choose instead (e.g. evaluate or accept the candidate), so the routing is implied rather than exhaustive.

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