Skip to main content
Glama

ProtoJoint

Work it out

calc
Read-onlyIdempotent

Works numbers out instead of reckoning or rounding them. expressions: name -> expression, in order; a later one may use earlier names and the design's parameters. Numbers take units (mm, cm, in; deg, rad; bare: mm, or degrees for an angle); + - * / ^; [x, y, z] vectors; sin cos tan (degrees), asin acos atan atan2 (to degrees), sqrt abs pow min max hypot round, len norm dot cross angle dist rotate(v, axis, deg); world('part', p) and local('part', p) between a part's coordinates and the world, dir_world and dir_local for directions, uv(sketch_id, p) and xyz(sketch_id, [u, v]), joint_at, joint_axis, joint_value('joint'), volume('body'). Any number a tool takes may be such an expression ("r*cos(30deg)"): its answer says what it came to.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "expressions": "<expressions>"
    },
    "name": "calc"
  }
}

Input Schema

NameRequiredDescriptionDefault
expressionsYesname -> expression

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, closed-world, so the safety profile is covered. The description adds real behavioral detail beyond that: expressions are evaluated in order, later expressions may reference earlier names, design parameters are in scope, and "its answer says what it came to" indicates the evaluated value is returned. It stops short of describing error behavior or the exact return shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is dense but roughly the right size for a function reference that must enumerate a grammar. The structure is weak: the first sentence is awkward and front-loads nothing useful, and the rest is one long undifferentiated enumeration rather than grouped by category (operators, units, math, geometry queries).

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

Completeness4/5

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

No output schema exists, and the description covers the return at a minimal level ("its answer says what it came to") plus all the key input semantics for a nested name-to-expression map. For a pure evaluator whose annotations already carry the safety profile, this is nearly complete; only error handling and the precise result shape are missing.

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 100% and the schema only says "name -> expression", so the description does real work: it specifies ordering semantics, cross-reference rules between named expressions, access to design parameters, unit defaults (mm bare, degrees for angles), and the vector/function vocabulary. This meaningfully expands what an agent can put in the single map parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence, "Works numbers out instead of reckoning or rounding them," is an oblique way to say "evaluates numeric expressions," and the tool never states its purpose in a plain verb+resource form. The body of function names and unit rules makes it inferable that this is an expression evaluator, but the agent has to derive that from the grammar dump rather than read it directly. It does not distinguish itself explicitly from just computing numbers inline in another tool.

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

Usage Guidelines3/5

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

The line "Any number a tool takes may be such an expression" is a genuine usage hint: it tells the agent expressions can be passed to other tools and need not be precomputed. However, there is no explicit when-to-use-this vs. compute-elsewhere guidance, no statement of what happens on invalid expressions, and no routing to sibling tools.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources