Skip to main content
Glama
karlmehta
by karlmehta

trustmodel_trace_step

Records each reasoning step, tool call, tool result, or response in an active trace session. Use after initiating a trace to log step type and content.

Instructions

Record a single step in an active trace session. Call once per reasoning step, tool call, tool result, or user-facing response. Step numbers are auto-assigned (1-based). Requires a trace_id from trustmodel_trace_start.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesHuman-readable text for this step. Empty string allowed.
trace_idYesTrace handle returned by trustmodel_trace_start.
step_typeYesKind of step: 'thought'/'think' (reasoning), 'tool_call', 'tool_result', 'observation', 'decision', 'error', 'human_input', 'response'/'final_answer' (user-facing output).
timestampNoISO 8601 timestamp. Defaults to the current time if omitted.
tool_argsNoArguments passed to the tool (use with step_type='tool_call').
tool_nameNoName of the tool invoked (use with step_type='tool_call' or 'tool_result').
model_usedNoModel used for this step's reasoning.
duration_msNoHow long this step took, in milliseconds.
tool_resultNoResult returned by the tool (use with step_type='tool_result').
input_tokensNoInput token count for this step.
output_tokensNoOutput token count for this step.
tool_call_successNoWhether the tool call succeeded (use with step_type='tool_result').
Behavior3/5

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

Discloses auto-assigned step numbers (1-based) and default timestamp. No annotations provided, so description carries burden; however, it does not detail error handling, side effects, or behavior for invalid trace_id.

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?

Three concise sentences, front-loaded with purpose. Every sentence adds value without redundancy.

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?

Covers main usage and required parameter, but does not explain return value or error scenarios. Given high parameter count (12) and no output schema, additional context about success/failure would improve completeness.

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 100%, so all parameters have descriptions. The description adds minimal extra meaning beyond the schema (e.g., step number auto-assignment). 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?

Description clearly states verb 'Record a single step' and resource 'active trace session'. Distinguishes from siblings (trace_start, trace_finalize) by specifying it is for step recording during an active session.

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?

Explicitly describes when to call ('once per reasoning step, tool call, tool result, or user-facing response') and prerequisite ('Requires a trace_id from trustmodel_trace_start'). Lacks explicit when-not-to-use or alternatives, but context is sufficient.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/karlmehta/trustmodel-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server