Skip to main content
Glama

Resolve Image Assumptions

resolve_assumptions
Idempotent

Use this when you need to confirm or override the open facts in an assumption ledger from trace_from_image (missing scale, inferred/assumed values) before committing geometry built from a reference photo. Reads the persisted <model>.ledger.json at ledger_path, applies each resolution — { id, confirm: true } to accept a fact as-is, or { id, value } to override it — rewrites the ledger file, and returns the updated ledger plus paramOverrides (factId -> value) to feed straight into set_param. Pair with the kernelcad-from-reference skill.

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": {
      "ledger_path": "<ledger_path>",
      "resolutions": "<resolutions>"
    },
    "name": "resolve_assumptions"
  }
}

Input Schema

NameRequiredDescriptionDefault
ledger_pathYesPath to the `<model>.ledger.json` file persisted alongside the traced source.
resolutionsYesOne resolution per ledger fact id to act on.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / ledgerPath
      Removed value: -{
      -  "description": "Path to the `<model>.ledger.json` file persisted alongside the traced source.",
      -  "type": "string"
      -}
    • addedInput schema / properties / ledger_path
      Added value: +{
      +  "description": "Path to the `<model>.ledger.json` file persisted alongside the traced source.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "ledgerPath",
      -  "resolutions"
      -]New value: +[
      +  "ledger_path",
      +  "resolutions"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / resolutions / items / properties / value / type
      Added value: +[
      +  "string",
      +  "number",
      +  "boolean",
      +  "array",
      +  "object"
      +]
  3. Changed2 schema fields changed
    • removedOutput schema / properties
      Removed value: -{
      -  "diagnostics": {
      -    "items": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "ledger": {
      -    "additionalProperties": true,
      -    "description": "The ledger after applying resolutions (present on success).",
      -    "type": "object"
      -  },
      -  "ok": {
      -    "type": "boolean"
      -  },
      -  "paramOverrides": {
      -    "additionalProperties": true,
      -    "description": "factId -> value for every resolved fact with a value; feed into set_param.",
      -    "type": "object"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "ok",
      -  "paramOverrides",
      -  "diagnostics"
      -]
  4. Added

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations it discloses the real side effects: it reads the persisted <model>.ledger.json at ledger_path, rewrites that file, and returns both the updated ledger and a paramOverrides map. That is meaningful context the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=true) do not convey, and it is consistent with them since resolutions are additive state marking rather than data loss. It stops short of describing failure behavior for ids that do not match a ledger fact.

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 use condition, then the mechanics, then the return value and the skill pointer — a sensible order with no filler. It is dense and long for a single paragraph, but nearly every clause carries information an agent needs.

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 workflow tool with a 2-parameter schema, full coverage, and an output schema, the definition supplies the trigger, the file side effect, the resolution grammar, and the handoff to set_param. Nothing an agent needs in order to invoke it correctly within the trace-to-CAD pipeline is 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%, so the baseline is 3, but the description adds semantics the schema cannot: that { id, confirm: true } accepts a fact as-is while { id, value } overrides it, and that the resulting paramOverrides map feeds directly into set_param. That downstream wiring gives the resolutions array purpose beyond its field docs.

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?

States a specific verb pair (confirm/override) applied to a named resource (open facts in an assumption ledger), and distinguishes itself from siblings by naming trace_from_image as the producer and set_param as the consumer. An agent can tell exactly what this tool does and where it sits in the pipeline without opening any schema.

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?

Gives an explicit triggering condition ('when you need to confirm or override the open facts... before committing geometry built from a reference photo'), names the upstream tool that creates the ledger and the downstream tool that consumes paramOverrides, and points at the kernelcad-from-reference skill. It also bounds what the tool should not be used for implicitly by framing it as a pre-commit step rather than a geometry operation.

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.