Skip to main content
Glama

Finish a use case run

helix_foundry_finish_use_case_run
Idempotent

Finish a run of a Foundry use case with the agent's final answer, and its initial request if the run was started without it. A finished run records nothing more. Finishing again with the same answer is no error. A run that made calls with its id is assessed for how much the ontology helped; one that made none isn't, and counts apart as not using the ontology.

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": {
      "ontology_id": "<ontology_id>",
      "use_case_id": "<use_case_id>",
      "run_id": "<run_id>",
      "output": "<output>"
    },
    "name": "helix_foundry_finish_use_case_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputNoThe run's initial request, at most 64 KiB: required unless the run was started with it.
outputYesThe agent's final answer, at most 256 KiB.
run_idYesThe run, as helix_foundry_start_use_case_run returned it.
ontology_idYesFoundry ontology identifier.
use_case_idYesThe run's use case.
workspace_idNoHelix workspace identifier. May be empty when the caller has only one workspace (a service key always does).

Output Schema

NameRequiredDescriptionDefault
idYes
nextNo
inputNo
countsYes
outputNo
statusYes
assessmentNoIts assessment, once it finished: how much what it read made its answer. A run that made no call to the ontology has none: it isn't assessed.
started_atYes
finished_atNo
use_case_idYes
content_trustYes
from_workflow_run_idNoFor a run Foundry started: the workflow run it records (helix_foundry_get_workflow_run's run_id; its use case's workflow names the workflow). Not a use_case_run_id: this run's own id is id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 a finished run is terminal ('records nothing more'), that repeat finishing with the same answer is tolerated, and that runs which made calls with their id are scored for ontology helpfulness while call-less runs are not and are counted separately. That assessment consequence is real behavioral context an agent cannot get from idempotentHint/destructiveHint alone.

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?

Three sentences, front-loaded with the action, then terminal semantics, then assessment behavior. Dense but every sentence carries information; the closing clause ('counts apart as not using the ontology') is terse enough to be slightly ambiguous.

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?

An output schema exists, so return values need not be explained, and annotations cover the safety profile. The description fills in the lifecycle and scoring consequences, leaving only minor gaps such as error behavior for unknown run_ids or mismatched use_case_id.

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 every parameter is already documented in the schema, including the conditional behavior of 'input' and the size limits. The description largely restates the input-optional-unless-provided rule rather than adding format or validation meaning beyond the schema; baseline 3 applies.

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 — finishing a use case run with the agent's final answer — and ties it to the run lifecycle started elsewhere (run_id 'as helix_foundry_start_use_case_run returned it'). It implicitly separates itself from start/get siblings, though it never names them explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage conditions are present but conditional rather than comparative: it explains that input is needed only if the run was started without it, and that re-finishing with the same answer is not an error. It gives no explicit statement of when to choose this over helix_foundry_get_use_case_run or helix_foundry_start_use_case_run.

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