Skip to main content
Glama

Vira – Create, Teach & Manage AI Behavior

get_task_run

Read-onlyIdempotent

Read a scoped TaskRun state and lifecycle version. Use to read the scoped resource; use its create, execute, or transition sibling for state changes. Required fields: organizationId, projectId, environmentId, taskRunId. The authenticated MCP session supplies the tenant scope; any supplied scope identifiers must match it. Unknown fields are rejected. This is read-only and returns scope-bound data.

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": {
      "taskRunId": "<taskRunId>"
    },
    "name": "get_task_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectIdNoAuthenticated customer scope identifier; must match the API key scope and is never inferred from model text.
taskRunIdYesImmutable taskRunId reference used to bind this get_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.
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. Changed5 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 / organizationId / description
      Added value: +"Authenticated customer scope identifier; must match the API key scope and is never inferred from model text."
    • 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 / taskRunId / description
      Added value: +"Immutable taskRunId reference used to bind this get_task_run operation to the correct released or persisted resource."
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: the tenant scope comes from the authenticated session, supplied scope identifiers must match it, and unknown fields are rejected. Return shape is not described, but with no output schema that is a minor gap.

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 scope constraint and sibling routing are front-loaded, but the second sentence ('Use to read the scoped resource') restates the opening sentence, and the required-fields sentence is partly redundant with the schema. It is short overall but not free of waste.

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 read-only getter with full schema coverage and annotations, the description covers scope enforcement, strict-input behavior and read-only semantics, which is most of what an agent needs. It omits what 'lifecycle version' contains and what the returned state looks like, though with no output schema those details are not strictly required.

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 documents all four parameters and the baseline is 3. The description adds the important scope-matching semantics, but its claim that organizationId, projectId, environmentId and taskRunId are all 'required fields' conflicts with the schema, where only taskRunId is required, which could push an agent to send unnecessary parameters.

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 ('Read a scoped TaskRun state and lifecycle version') and explicitly separates itself from mutation siblings ('use its create, execute, or transition sibling for state changes'). It does not name a read-only sibling it could be confused with, but the read/write split is unambiguous.

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 when-to-use rule (reading scoped TaskRun state) and a when-not-to-use rule (state changes belong to create/execute/transition siblings). No named alternative for overlapping read scenarios, but the routing guidance covers the primary ambiguity against the heavily mutation-oriented sibling list.

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