Skip to main content
Glama

solve_ode

Solve initial-value ODE systems from right-hand side expressions and initial conditions over a time span, returning numerical solutions at chosen time points.

Instructions

Solve an initial-value ODE system with scipy solve_ivp.

``rhs`` is one expression (state variable ``y``) or a list of expressions
(state variables ``y0, y1, ...`` in the same order as ``y0``). The time
variable is ``t``; keys of ``params`` are injected as extra constants.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
y0Yes
rhsYes
methodNoRK45
paramsNo
t_evalNo
t_spanYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses the expression-language conventions (state variable y or y0,y1..., time variable t, params keys injected as constants), but says nothing about return format, error behavior, or solver tolerances.

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?

Front-loaded with the core action, then the two conventions that matter most. Two short paragraphs with essentially no filler, though the backtick-heavy formatting is slightly noisy.

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?

For a 6-parameter numerical solver with no annotations and no output schema, the description covers the expression interface but omits t_span/t_eval semantics and what the solver returns. Adequate to attempt a call, but with clear gaps.

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 0%, so the description must compensate, and it partly does: rhs, y0 ordering, params, and t are explained. However, t_span, t_eval, and method receive no explanation, leaving half the parameters undocumented in both schema and description.

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+resource ("Solve an initial-value ODE system") and names the underlying engine (scipy solve_ivp), which implicitly distinguishes it from the symbolic sibling dsolve_ode. It does not, however, explicitly contrast itself with dsolve_ode or other solvers in the family.

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?

No when-to-use or when-not-to-use guidance is given. The description never mentions the symbolic alternative dsolve_ode, so an agent must infer from the name alone whether this numerical IVP solver or the symbolic solver is appropriate.

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