Skip to main content
Glama

code_steps

Break down code problems into numbered reasoning steps and a conclusion using optional file, line, snippet, stack, or error context.

Instructions

Step-by-step code reasoning (max 20 steps). Accepts message and optional context (file, line, snippet, stack, files, error, language); returns numbered steps and conclusion. Pure internal implementation.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "code_steps"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNo
messageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose the 20-step cap and the return shape (numbered steps plus conclusion), which is real behavioral context. It does not clarify whether the tool has side effects, whether it writes into the sibling steps_* sequence, or what 'pure internal implementation' implies for callers, so the safety and side-effect profile remains uncertain.

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?

Two compact sentences that front-load the core purpose, then the input/output contract. The only questionable content is the closing 'Pure internal implementation', which is short but adds ambiguity rather than clarity.

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?

No output schema exists, so it is appropriate that the description names the return (numbered steps and conclusion), and it covers the context parameter's vocabulary. What is missing for a reasoning tool with zero annotation coverage is any statement of when to reach for it versus the other steps_* and planning siblings, leaving the definition adequate but incomplete.

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 0% and both properties are declared as bare empty schemas, so the description is doing needed work by enumerating the context fields (file, line, snippet, stack, files, error, language). However, it says nothing about the 'message' parameter's content or expected form, and it leaves unclear whether 'context' is an object with those keys or a free-form value.

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: step-by-step code reasoning bounded at 20 steps, producing numbered steps plus a conclusion. The purpose is clear, but it does not distinguish itself from sibling tools such as steps_append, steps_summary, or agent_code, and the trailing phrase 'Pure internal implementation' is ambiguous about what that actually means for an agent.

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

Usage Guidelines2/5

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

There is no when-to-use guidance: no conditions, no prerequisites, and no mention of alternatives like steps_append for adding to an existing sequence or steps_summary for reading it back. 'Pure internal implementation' hints at invocation context but does not tell an agent under what circumstances it should call this tool.

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