Skip to main content
Glama

Vira – Create, Teach & Manage AI Behavior

create_pack_revision

Create a draft Pack Revision from an accepted behavior candidate. Use only after the preceding resource and authority prerequisites are satisfied; inspect the server receipt before continuing. Required fields: organizationId, projectId, environmentId, id, packKey, version, behaviorRevisionCandidateId. 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>",
      "packKey": "<packKey>",
      "version": "<version>",
      "behaviorRevisionCandidateId": "<behaviorRevisionCandidateId>"
    },
    "name": "create_pack_revision"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesDocumented id input for create_pack_revision; use the published type and keep customer data within the authenticated scope.
packKeyYesImmutable packKey reference used to bind this create_pack_revision operation to the correct released or persisted resource.
versionYesDocumented version input for create_pack_revision; 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.
behaviorRevisionCandidateIdYesImmutable behaviorRevisionCandidateId reference used to bind this create_pack_revision operation to the correct released or persisted resource.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / behaviorRevisionCandidateId / description
      Added value: +"Immutable behaviorRevisionCandidateId reference used to bind this create_pack_revision operation to the correct released or persisted resource."
    • 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_pack_revision; 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 / packKey / description
      Added value: +"Immutable packKey reference used to bind this create_pack_revision 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 / version / description
      Added value: +"Documented version input for create_pack_revision; use the published type and keep customer data within the authenticated scope."
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations, the description discloses that this mutates governed state, is fail-closed behind server authorization, produces an auditable receipt, enforces tenant scope matching, and rejects unknown fields. That is meaningful operational context the annotations do not carry; only the concrete failure modes and error semantics are left implicit.

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?

The action and its source are front-loaded, and the operational caveats follow in a logical order. The enumerated required-field sentence duplicates what the schema already marks as required, which is the one stretch of text that does not fully earn its place.

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 state-mutating tool with no output schema, the description covers authorization, scope binding, strict input validation, and the receipt to inspect afterward. What remains uncovered is minor: the failure surface when authorization or scope matching rejects the call.

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 seven parameters are already documented in the schema, including the scope-matching constraint on organizationId/projectId/environmentId. The description's field list and 'supplied scope identifiers must match' clause largely restate the schema rather than adding new syntax or format meaning, so the baseline of 3 applies.

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 states a specific verb (create), a specific artifact (draft Pack Revision) and its source (an accepted behavior candidate). This distinguishes it from siblings like materialize_pack_revision and create_behavior_revision_candidate without naming them.

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 ('use only after the preceding resource and authority prerequisites are satisfied') and a follow-up action ('inspect the server receipt before continuing'), which tells the agent when it is safe to call. It stops short of naming which sibling to use instead when prerequisites are unmet, so no explicit alternative routing is provided.

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