Skip to main content
Glama

Run one installed Jacobian math tool

math.run
Read-only

Execute any installed mathematical operation by its operation ID and structured payload, obtaining the canonical computed value for verification or reuse.

Instructions

Run one installed math tool by ID with its typed payload. A successful call returns the operation-owned canonical mathematical value in output; a later inspected operation may accept that complete value unchanged. Read its fields to determine what the calculation established. MCP reports malformed payloads, unknown IDs, and host failures as tool errors, not as mathematical results. If the payload shape is unknown, inspect the exact operation with math.find. When it publishes an examples item, copy and adapt that item's input object as the payload; otherwise, form the payload from the input schema and its field descriptions. Do not call math.run with an empty payload merely to discover required fields; inspection is authoritative.

Timeout, incomplete search, and missing witnesses appear only in the concrete domain result that owns them; none is a mathematical conclusion by itself.

Examples:

  • {"operation_id":"integer.compute.extended_gcd","payload":{"left":"84","right":"30"}}

Input Schema

NameRequiredDescriptionDefault
payloadYes
operation_idYes

Output Schema

NameRequiredDescriptionDefault
outputYes
runtime_msYes
operation_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.7.6
    • removedOutput schema / properties / operation_version
      Removed value: -{
      -  "maxLength": 64,
      -  "minLength": 1,
      -  "title": "Operation Version",
      -  "type": "string"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "operation_id",
      -  "operation_version",
      -  "runtime_ms",
      -  "output"
      -]New value: +[
      +  "operation_id",
      +  "runtime_ms",
      +  "output"
      +]
  2. Changed25 schema fields changedv0.7.4
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / capability_id
      Removed value: -{
      -  "maxLength": 128,
      -  "minLength": 3,
      -  "pattern": "^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)+$",
      -  "title": "Capability Id",
      -  "type": "string"
      -}
    • addedInput schema / properties / operation_id
      Added value: +{
      +  "maxLength": 128,
      +  "minLength": 3,
      +  "pattern": "^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)+$",
      +  "title": "Operation Id",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "capability_id",
      -  "payload"
      -]New value: +[
      +  "operation_id",
      +  "payload"
      +]
    • changedInput schema / title
      Previous value: -"capability_invokeArguments"New value: +"math_runArguments"
    • removedOutput schema / $defs
      Removed value: -{
      -  "CapabilityAssurance": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "basis": {
      -        "maxLength": 1024,
      -        "minLength": 1,
      -        "title": "Basis",
      -        "type": "string"
      -      },
      -      "level": {
      -        "$ref": "#/$defs/CapabilityAssuranceLevel"
      -      },
      -      "verification_record_uri": {
      -        "anyOf": [
      -          {
      -            "pattern": "^artifact://sha256/[0-9a-f]{64}$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Verification Record Uri"
      -      }
      -    },
      -    "required": [
      -      "level",
      -      "basis"
      -    ],
      -    "title": "CapabilityAssurance",
      -    "type": "object"
      -  },
      -  "CapabilityAssuranceLevel": {
      -    "description": "Coarse model-facing assurance without hiding the detailed result record.",
      -    "enum": [
      -      "HEURISTIC",
      -      "COMPUTED",
      -      "VERIFIED"
      -    ],
      -    "title": "CapabilityAssuranceLevel",
      -    "type": "string"
      -  },
      -  "CapabilityCompleteness": {
      -    "additionalProperties": false,
      -    "description": "Coverage claim over the result's exact declared scope.",
      -    "properties": {
      -      "assurance_level": {
      -        "$ref": "#/$defs/CapabilityAssuranceLevel",
      -        "default": "HEURISTIC"
      -      },
      -      "basis": {
      -        "maxLength": 1024,
      -        "minLength": 1,
      -        "title": "Basis",
      -        "type": "string"
      -      },
      -      "status": {
      -        "$ref": "#/$defs/CapabilityCompletenessStatus",
      -        "default": "NOT_APPLICABLE"
      -      },
      -      "verification_record_uri": {
      -        "anyOf": [
      -          {
      -            "pattern": "^artifact://sha256/[0-9a-f]{64}$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Verification Record Uri"
      -      }
      -    },
      -    "required": [
      -      "basis"
      -    ],
      -    "title": "CapabilityCompleteness",
      -    "type": "object"
      -  },
      -  "CapabilityCompletenessStatus": {
      -    "description": "How much of the explicitly declared scope an operation covered.",
      -    "enum": [
      -      "NOT_APPLICABLE",
      -      "UNKNOWN",
      -      "PARTIAL",
      -      "COMPLETE"
      -    ],
      -    "title": "CapabilityCompletenessStatus",
      -    "type": "string"
      -  },
      -  "CapabilityDiagnostic": {
      -    "additionalProperties": false,
      -    "description": "Actionable, stage-aware failure information without a truth claim.",
      -    "properties": {
      -      "actual_type": {
      -        "anyOf": [
      -          {
      -            "maxLength": 128,
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Actual Type"
      -      },
      -      "code": {
      -        "pattern": "^[A-Z][A-Z0-9_]{2,63}$",
      -        "title": "Code",
      -        "type": "string"
      -      },
      -      "details": {
      -        "additionalProperties": true,
      -        "title": "Details",
      -        "type": "object"
      -      },
      -      "expected": {
      -        "anyOf": [
      -          {
      -            "maxLength": 1024,
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Expected"
      -      },
      -      "hint": {
      -        "anyOf": [
      -          {
      -            "maxLength": 1024,
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Hint"
      -      },
      -      "message": {
      -        "maxLength": 1024,
      -        "minLength": 1,
      -        "title": "Message",
      -        "type": "string"
      -      },
      -      "path": {
      -        "anyOf": [
      -          {
      -            "maxLength": 512,
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Path"
      -      },
      -      "schema_uri": {
      -        "anyOf": [
      -          {
      -            "pattern": "^artifact://sha256/[0-9a-f]{64}$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Schema Uri"
      -      },
      -      "stage": {
      -        "pattern": "^[a-z][a-z0-9_]{1,63}$",
      -        "title": "Stage",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "code",
      -      "stage",
      -      "message"
      -    ],
      -    "title": "CapabilityDiagnostic",
      -    "type": "object"
      -  },
      -  "CapabilityObligation": {
      -    "additionalProperties": false,
      -    "description": "One materialized proof obligation and its checker-backed lifecycle.",
      -    "properties": {
      -      "obligation_uri": {
      -        "pattern": "^artifact://sha256/[0-9a-f]{64}$",
      -        "title": "Obligation Uri",
      -        "type": "string"
      -      },
      -      "status": {
      -        "$ref": "#/$defs/CapabilityObligationStatus",
      -        "default": "OPEN"
      -      },
      -      "verification_record_uri": {
      -        "anyOf": [
      -          {
      -            "pattern": "^artifact://sha256/[0-9a-f]{64}$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Verification Record Uri"
      -      }
      -    },
      -    "required": [
      -      "obligation_uri"
      -    ],
      -    "title": "CapabilityObligation",
      -    "type": "object"
      -  },
      -  "CapabilityObligationStatus": {
      -    "description": "Lifecycle of a proof obligation created by a capability.",
      -    "enum": [
      -      "OPEN",
      -      "DISCHARGED"
      -    ],
      -    "title": "CapabilityObligationStatus",
      -    "type": "string"
      -  },
      -  "CapabilityRelationship": {
      -    "additionalProperties": false,
      -    "description": "A domain-owned relationship between exact immutable artifacts.",
      -    "properties": {
      -      "obligation_uris": {
      -        "default": [],
      -        "items": {
      -          "pattern": "^artifact://sha256/[0-9a-f]{64}$",
      -          "type": "string"
      -        },
      -        "title": "Obligation Uris",
      -        "type": "array"
      -      },
      -      "relation_id": {
      -        "maxLength": 128,
      -        "minLength": 3,
      -        "pattern": "^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)+$",
      -        "title": "Relation Id",
      -        "type": "string"
      -      },
      -      "source_artifact_uris": {
      -        "items": {
      -          "pattern": "^artifact://sha256/[0-9a-f]{64}$",
      -          "type": "string"
      -        },
      -        "title": "Source Artifact Uris",
      -        "type": "array"
      -      },
      -      "status": {
      -        "$ref": "#/$defs/CapabilityRelationshipStatus",
      -        "default": "PROPOSED"
      -      },
      -      "target_artifact_uris": {
      -        "items": {
      -          "pattern": "^artifact://sha256/[0-9a-f]{64}$",
      -          "type": "string"
      -        },
      -        "title": "Target Artifact Uris",
      -        "type": "array"
      -      },
      -      "verification_record_uri": {
      -        "anyOf": [
      -          {
      -            "pattern": "^artifact://sha256/[0-9a-f]{64}$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Verification Record Uri"
      -      }
      -    },
      -    "required": [
      -      "relation_id",
      -      "source_artifact_uris",
      -      "target_artifact_uris"
      -    ],
      -    "title": "CapabilityRelationship",
      -    "type": "object"
      -  },
      -  "CapabilityRelationshipStatus": {
      -    "description": "Whether a returned mathematical relationship has checker backing.",
      -    "enum": [
      -      "PROPOSED",
      -      "VERIFIED"
      -    ],
      -    "title": "CapabilityRelationshipStatus",
      -    "type": "string"
      -  },
      -  "CapabilityScope": {
      -    "additionalProperties": false,
      -    "description": "Domain-owned scope parameters, optionally materialized as an artifact.",
      -    "properties": {
      -      "artifact_uri": {
      -        "anyOf": [
      -          {
      -            "pattern": "^artifact://sha256/[0-9a-f]{64}$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Artifact Uri"
      -      },
      -      "description": {
      -        "anyOf": [
      -          {
      -            "maxLength": 512,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Description"
      -      },
      -      "parameters": {
      -        "additionalProperties": true,
      -        "title": "Parameters",
      -        "type": "object"
      -      }
      -    },
      -    "title": "CapabilityScope",
      -    "type": "object"
      -  },
      -  "Execution": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "detail": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Detail"
      -      },
      -      "runtime_ms": {
      -        "anyOf": [
      -          {
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Runtime Ms"
      -      },
      -      "status": {
      -        "$ref": "#/$defs/ExecutionStatus"
      -      }
      -    },
      -    "required": [
      -      "status"
      -    ],
      -    "title": "Execution",
      -    "type": "object"
      -  },
      -  "ExecutionStatus": {
      -    "description": "Operational completion state, independent of mathematical truth.",
      -    "enum": [
      -      "COMPLETED",
      -      "TIMEOUT",
      -      "CANCELLED",
      -      "ERROR"
      -    ],
      -    "title": "ExecutionStatus",
      -    "type": "string"
      -  }
      -}
    • changedOutput schema / description
      Previous value: -"Capability invocation result."New value: +"The final transport envelope around one direct mathematical result."
    • removedOutput schema / properties / artifact_uris
      Removed value: -{
      -  "default": [],
      -  "items": {
      -    "pattern": "^artifact://sha256/[0-9a-f]{64}$",
      -    "type": "string"
      -  },
      -  "title": "Artifact Uris",
      -  "type": "array"
      -}
    • removedOutput schema / properties / assurance
      Removed value: -{
      -  "$ref": "#/$defs/CapabilityAssurance"
      -}
    • removedOutput schema / properties / capability_id
      Removed value: -{
      -  "maxLength": 128,
      -  "minLength": 3,
      -  "pattern": "^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)+$",
      -  "title": "Capability Id",
      -  "type": "string"
      -}
    • removedOutput schema / properties / capability_version
      Removed value: -{
      -  "maxLength": 64,
      -  "minLength": 1,
      -  "title": "Capability Version",
      -  "type": "string"
      -}
    • removedOutput schema / properties / completeness
      Removed value: -{
      -  "$ref": "#/$defs/CapabilityCompleteness"
      -}
    • removedOutput schema / properties / diagnostics
      Removed value: -{
      -  "default": [],
      -  "items": {
      -    "$ref": "#/$defs/CapabilityDiagnostic"
      -  },
      -  "title": "Diagnostics",
      -  "type": "array"
      -}
    • removedOutput schema / properties / execution
      Removed value: -{
      -  "$ref": "#/$defs/Execution"
      -}
    • removedOutput schema / properties / obligations
      Removed value: -{
      -  "default": [],
      -  "items": {
      -    "$ref": "#/$defs/CapabilityObligation"
      -  },
      -  "title": "Obligations",
      -  "type": "array"
      -}
    • addedOutput schema / properties / operation_id
      Added value: +{
      +  "maxLength": 128,
      +  "minLength": 3,
      +  "pattern": "^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)+$",
      +  "title": "Operation Id",
      +  "type": "string"
      +}
    • addedOutput schema / properties / operation_version
      Added value: +{
      +  "maxLength": 64,
      +  "minLength": 1,
      +  "title": "Operation Version",
      +  "type": "string"
      +}
    • removedOutput schema / properties / provider
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "maxLength": 128,
      -      "minLength": 1,
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Provider"
      -}
    • removedOutput schema / properties / provider_digest
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "pattern": "^sha256:[0-9a-f]{64}$",
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Provider Digest"
      -}
    • removedOutput schema / properties / relationships
      Removed value: -{
      -  "default": [],
      -  "items": {
      -    "$ref": "#/$defs/CapabilityRelationship"
      -  },
      -  "title": "Relationships",
      -  "type": "array"
      -}
    • removedOutput schema / properties / response_version
      Removed value: -{
      -  "const": "2",
      -  "default": "2",
      -  "title": "Response Version",
      -  "type": "string"
      -}
    • addedOutput schema / properties / runtime_ms
      Added value: +{
      +  "minimum": 0,
      +  "title": "Runtime Ms",
      +  "type": "integer"
      +}
    • removedOutput schema / properties / scope
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "$ref": "#/$defs/CapabilityScope"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "capability_id",
      -  "capability_version",
      -  "execution",
      -  "assurance"
      -]New value: +[
      +  "operation_id",
      +  "operation_version",
      +  "runtime_ms",
      +  "output"
      +]
    • changedOutput schema / title
      Previous value: -"CapabilityResult"New value: +"OperationResult"
  3. Changed5 schema fields changedv0.7.3
    • removedInput schema / $defs
      Removed value: -{
      -  "CapabilityMode": {
      -    "description": "The low-friction exploration and explicit verification lanes.",
      -    "enum": [
      -      "EXPLORE",
      -      "VERIFY"
      -    ],
      -    "title": "CapabilityMode",
      -    "type": "string"
      -  }
      -}
    • removedInput schema / properties / mode
      Removed value: -{
      -  "$ref": "#/$defs/CapabilityMode",
      -  "default": "EXPLORE"
      -}
    • removedOutput schema / $defs / CapabilityMode
      Removed value: -{
      -  "description": "The low-friction exploration and explicit verification lanes.",
      -  "enum": [
      -    "EXPLORE",
      -    "VERIFY"
      -  ],
      -  "title": "CapabilityMode",
      -  "type": "string"
      -}
    • removedOutput schema / properties / mode
      Removed value: -{
      -  "$ref": "#/$defs/CapabilityMode"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "capability_id",
      -  "capability_version",
      -  "mode",
      -  "execution",
      -  "assurance"
      -]New value: +[
      +  "capability_id",
      +  "capability_version",
      +  "execution",
      +  "assurance"
      +]
  4. Addedv0.7.2

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations, the description explains that successful calls return a canonical operation-owned value, that malformed payloads, unknown IDs, and host failures surface as MCP errors, and that timeout/incomplete-search/missing-witness findings are not mathematical conclusions. This is meaningful behavioral context not present in the annotations.

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 front-loaded with the core action and then adds only high-value operational guidance: error semantics, discovery workflow, and an example. Every sentence earns its place despite the length, which is justified for a generic runner tool.

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?

For a generic runner with two parameters, an output schema, and a single sibling, the description fully covers invocation, payload discovery, error behavior, and result semantics. There are no significant gaps that would prevent an agent from selecting or using the tool correctly.

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

Parameters4/5

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

Schema coverage is 0%, so the description carries the burden. It clarifies operation_id as a math tool ID and payload as the typed argument object, and gives a concrete example. It could enumerate more about operation_id format, but the schema pattern already covers that, and the discovery workflow is explicitly documented.

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 states a specific verb and resource: 'Run one installed math tool by ID with its typed `payload`' and clarifies the operation's return semantics. It differentiates from the sibling math.find by explicitly directing payload-shape discovery to math.find rather than math.run.

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?

It gives concrete when-to-use guidance, including using math.find when the payload shape is unknown, adapting published examples, and avoiding empty-payload discovery calls. It also tells the agent that inspection is authoritative, which prevents misuse.

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

Deploy Server

Other Tools