Skip to main content
Glama

Run a mathematical operation

math.run
Destructive

Run a math capability by ID with its typed payload, returning the calculated output and execution status. Check math.find for contract details if the payload shape is unknown.

Instructions

Run one installed math tool by ID with its typed payload. Read the mathematical value in output first, then execution status. If the payload shape is unknown, use math.find with view CONTRACT.

Ordinary tools return calculations. Independent checking uses a separate checker tool ID (for example polynomial.identity.verify or case.partition.finite.verify), not a switch on the producer. Failed or incomplete runs are not mathematical conclusions.

Examples:

  • {"capability_id":"integer.compute.gcd","payload":{"left":"84","right":"30"}}

  • {"capability_id":"polynomial.identity.verify","payload":{"variables":["x"],"left":{"terms":[]},"right":{"terms":[]}}}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYes
capability_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeNo
outputNo
providerNo
assuranceYes
executionYes
diagnosticsNo
obligationsNo
completenessNo
artifact_urisNo
capability_idYes
relationshipsNo
provider_digestNo
response_versionNo2
capability_versionYes
Behavior5/5

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

Annotations already mark destructiveHint=true, and the description does not contradict that. It adds valuable behavioral context: read the mathematical value in `output` before execution status, and failed or incomplete runs are not mathematical conclusions. This goes beyond annotations and helps the agent interpret results safely.

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 well-structured and tightly written. The opening sentence states the core purpose, subsequent sentences add usage guidance and result interpretation, and two examples illustrate the format without excessive length. Every sentence contributes to correct invocation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given that this is a generic runner for arbitrary math tools, the description is remarkably complete: it explains how to invoke, how to read the output, when to use math.find, and how to treat failures. The output schema exists, so return values do not need to be spelled out, and the examples cover both a simple numeric computation and a more complex verification tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Despite 0% schema description coverage, the description explains that capability_id identifies the installed math tool and payload is the typed input, and it provides two concrete JSON examples that demonstrate exact shape and nesting. It also directs users to math.find with view CONTRACT when the payload shape is unknown, effectively documenting parameter discovery.

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 clearly states the action: 'Run one installed math tool by ID with its typed `payload`.' It specifies the resource (installed math tool) and the verb (run), and distinguishes itself from the sibling tool math.find by explicitly pointing to math.find for unknown payload shapes.

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use math.run vs math.find: 'If the payload shape is unknown, use math.find with view CONTRACT.' It also warns against using the producer as a switch for independent checking and instead directs to dedicated checker tool IDs, which is clear when-not advice.

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/morluto/jacobian'

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