Skip to main content
Glama

kalei_run_act

Submit a single decision or action for your current environment run. Watch for environmentComplete in the response to know when the run is finished.

Instructions

Submit one decision. Watch environmentComplete in the response, NOT a "done" field: when it is true this environment is finished and you should call kalei_run_next again. Acting again on a finished environment is refused.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesOne of state.availableActions
paramsNoAction parameters, e.g. { "amount": 50, "choice": "LOW" }
run_idYes
session_idYessessionId from kalei_run_next

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden of behavioral disclosure, and it does so well: it specifies the exact completion signal ('environmentComplete', not 'done'), states that a finished environment refuses further actions, and directs the agent to the next step. It doesn't detail all response fields or failure modes, but the key behavioral rules are explicit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loads the core action, and uses the second sentence for critical behavioral guidance. Every sentence earns its place; there is no redundant filler.

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 an action-submission tool in a run loop, the description captures the essential workflow: submit a decision, check environmentComplete, call kalei_run_next when done, and avoid re-acting on a finished environment. It doesn't explain the full response shape or the run_id parameter, but the schema and the completion-field guidance cover most agent needs.

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 description coverage is 75%, so the schema already documents action, params, and session_id. The description reinforces the 'one decision' nature and the connection to state.availableActions, but it adds little about run_id or parameter formatting beyond what the schema provides. Baseline 3 is appropriate.

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 description opens with a specific verb and resource: 'Submit one decision.' It also references the environment lifecycle and names kalei_run_next as the follow-up tool, distinguishing it from sibling run tools. This is enough for an agent to understand what the tool does and when it fits in the workflow.

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?

The description gives clear usage context: watch for 'environmentComplete' in the response.meant to be called repeatedly for decisions, and after completion you should invoke kalei_run_next. It also warns against acting on a finished environment. It does not explicitly enumerate all sibling alternatives, but it covers the main decision point clearly.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.