Skip to main content
Glama

Vira – Create, Teach & Manage AI Behavior

start_task_run

Start a TaskRun from a natural-language request. Server derives the actor, host capabilities, mode and released plan; requestedMode and plan fields are advanced overrides only. Use only after the preceding resource and authority prerequisites are satisfied; inspect the server receipt before continuing. Required fields: organizationId, projectId, environmentId, input. 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": {
      "input": "<input>"
    },
    "name": "start_task_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesThe end-user request or runtime input that Vira must resolve, execute, or evaluate.
projectIdNoAuthenticated customer scope identifier; must match the API key scope and is never inferred from model text.
requestIdNoImmutable requestId reference used to bind this start_task_run operation to the correct released or persisted resource.
taskRunIdNoImmutable taskRunId reference used to bind this start_task_run operation to the correct released or persisted resource.
environmentIdNoAuthenticated customer scope identifier; must match the API key scope and is never inferred from model text.
ownerActorRefNoActor identity for the authorized customer action; do not use a service or Vira-internal identity.
requestedModeNoDocumented requestedMode input for start_task_run; use the published type and keep customer data within the authenticated scope.
organizationIdNoAuthenticated customer scope identifier; must match the API key scope and is never inferred from model text.
hostCapabilitiesNoDocumented hostCapabilities input for start_task_run; use the published type and keep customer data within the authenticated scope.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • 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 / hostCapabilities / description
      Added value: +"Documented hostCapabilities input for start_task_run; use the published type and keep customer data within the authenticated scope."
    • addedInput schema / properties / input / description
      Added value: +"The end-user request or runtime input that Vira must resolve, execute, or evaluate."
    • 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 / ownerActorRef / description
      Added value: +"Actor identity for the authorized customer action; do not use a service or Vira-internal identity."
    • 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 / requestId / description
      Added value: +"Immutable requestId reference used to bind this start_task_run operation to the correct released or persisted resource."
    • addedInput schema / properties / requestedMode / description
      Added value: +"Documented requestedMode input for start_task_run; use the published type and keep customer data within the authenticated scope."
    • addedInput schema / properties / taskRunId / description
      Added value: +"Immutable taskRunId reference used to bind this start_task_run operation to the correct released or persisted resource."
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Adds real value beyond the annotations: it discloses that the server derives actor, host capabilities, mode and released plan, that requestedMode/plan are advanced overrides only, and that the call is fail-closed behind authorization with an auditable receipt. However, "the preceding resource and authority prerequisites" is left undefined, so the agent is warned about a gate it cannot identify or check. Annotations already carry the write/non-idempotent/non-destructive profile, so the remaining gap keeps this at 3.

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?

Front-loaded with the action, then the derivation rule, then preconditions, then required fields, then the governance note, in a sensible order. Sentences are dense but each carries distinct information; nothing is obviously redundant.

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 9-parameter governed mutation with no output schema, the description covers derivation semantics, tenancy enforcement, unknown-field rejection and the receipt, which is substantial. It still leaves the referenced "resource and authority prerequisites" and the receipt's contents undefined, so the agent cannot fully verify the call succeeded before continuing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline would be 3, but the description asserts "Required fields: organizationId, projectId, environmentId, input" while the schema marks only "input" as required. That is a direct conflict with the structured contract and risks the agent fabricating scope identifiers, which the same description elsewhere says must come from the authenticated session.

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?

States a specific verb and resource: "Start a TaskRun from a natural-language request," plus the key derived-vs-override distinction. It stops short of naming a contrasting sibling (continue_task_run, resolve_task_run, start_evaluation), so the agent must infer the boundary from names alone.

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 a clear precondition ("Use only after the preceding resource and authority prerequisites are satisfied") and a follow-up obligation ("inspect the server receipt before continuing"). It offers no explicit when-not guidance or named alternative for cases where a run already exists, which is where an agent is most likely to pick the wrong tool.

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