Skip to main content
Glama

principia.constructs.resolve

Read-only

Resolve a source-side construct {name, definition?, variable_code?} against the canonical store. READ-ONLY — does not mutate. Uses meta-factory's matcher (name@0.9 / code@0.85 / definition@0.6).

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": {
      "name": "<name>"
    },
    "name": "principia.constructs.resolve"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
definitionNo
variable_codeNo

Output Schema

NameRequiredDescriptionDefault
kindYes
constructYes
confidenceNo
match_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / construct / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "abstraction_level": {
      -        "anyOf": [
      -          {
      -            "enum": [
      -              "broad_trait",
      -              "facet",
      -              "competency",
      -              "condition",
      -              "process",
      -              "composite"
      -            ],
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "alternative_names": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "attestation": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "anchored_at": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "attestation_version": {
      -            "const": "1",
      -            "type": "string"
      -          },
      -          "cite_as": {
      -            "type": "string"
      -          },
      -          "external_anchor": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "bitcoin_block_height": {
      -                "type": "string"
      -              },
      -              "service": {
      -                "type": "string"
      -              },
      -              "status": {
      -                "enum": [
      -                  "pending",
      -                  "confirmed",
      -                  "failed",
      -                  "not_submitted"
      -                ],
      -                "type": "string"
      -              },
      -              "summary": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "service",
      -              "status",
      -              "summary"
      -            ],
      -            "type": "object"
      -          },
      -          "merkle_root": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "path": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "hash": {
      -                  "type": "string"
      -                },
      -                "side": {
      -                  "enum": [
      -                    "left",
      -                    "right"
      -                  ],
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "hash",
      -                "side"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "receipt_id": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "record_id": {
      -            "type": "string"
      -          },
      -          "scope": {
      -            "type": "string"
      -          },
      -          "status": {
      -            "enum": [
      -              "anchored",
      -              "not_anchored",
      -              "anchor_unavailable"
      -            ],
      -            "type": "string"
      -          },
      -          "verify_url": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "attestation_version",
      -          "status",
      -          "record_id",
      -          "receipt_id",
      -          "anchored_at",
      -          "merkle_root",
      -          "path",
      -          "external_anchor",
      -          "scope",
      -          "verify_url",
      -          "cite_as"
      -        ],
      -        "type": "object"
      -      },
      -      "cite_as": {
      -        "type": "string"
      -      },
      -      "construct_id": {
      -        "type": "string"
      -      },
      -      "construct_ids": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "definition": {
      -        "type": "string"
      -      },
      -      "normalized_name": {
      -        "type": "string"
      -      },
      -      "variable_codes": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "variable_id": {
      -        "type": "string"
      -      },
      -      "variable_name": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "variable_name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "abstraction_level": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "broad_trait",
      +              "facet",
      +              "competency",
      +              "condition",
      +              "process",
      +              "composite"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "alternative_names": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "attestation": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "anchored_at": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "attestation_version": {
      +            "const": "1",
      +            "type": "string"
      +          },
      +          "cite_as": {
      +            "type": "string"
      +          },
      +          "external_anchor": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "bitcoin_block_height": {
      +                "type": "string"
      +              },
      +              "service": {
      +                "type": "string"
      +              },
      +              "status": {
      +                "enum": [
      +                  "pending",
      +                  "confirmed",
      +                  "failed",
      +                  "not_submitted"
      +                ],
      +                "type": "string"
      +              },
      +              "summary": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "service",
      +              "status",
      +              "summary"
      +            ],
      +            "type": "object"
      +          },
      +          "merkle_root": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "path": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "hash": {
      +                  "type": "string"
      +                },
      +                "side": {
      +                  "enum": [
      +                    "left",
      +                    "right"
      +                  ],
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "hash",
      +                "side"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "receipt_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "record_id": {
      +            "type": "string"
      +          },
      +          "scope": {
      +            "type": "string"
      +          },
      +          "status": {
      +            "enum": [
      +              "anchored",
      +              "not_anchored",
      +              "anchor_unavailable"
      +            ],
      +            "type": "string"
      +          },
      +          "verify_url": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "attestation_version",
      +          "status",
      +          "record_id",
      +          "receipt_id",
      +          "anchored_at",
      +          "merkle_root",
      +          "path",
      +          "external_anchor",
      +          "scope",
      +          "verify_url",
      +          "cite_as"
      +        ],
      +        "type": "object"
      +      },
      +      "cite_as": {
      +        "type": "string"
      +      },
      +      "construct_id": {
      +        "type": "string"
      +      },
      +      "construct_ids": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "definition": {
      +        "type": "string"
      +      },
      +      "normalized_name": {
      +        "type": "string"
      +      },
      +      "variable_codes": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "variable_id": {
      +        "type": "string"
      +      },
      +      "variable_name": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "variable_name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed1 schema field changed
    • changedOutput schema / properties / construct / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "abstraction_level": {
      -        "anyOf": [
      -          {
      -            "enum": [
      -              "broad_trait",
      -              "facet",
      -              "competency",
      -              "condition",
      -              "process",
      -              "composite"
      -            ],
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "alternative_names": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "construct_id": {
      -        "type": "string"
      -      },
      -      "construct_ids": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "definition": {
      -        "type": "string"
      -      },
      -      "normalized_name": {
      -        "type": "string"
      -      },
      -      "variable_codes": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "variable_id": {
      -        "type": "string"
      -      },
      -      "variable_name": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "variable_name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "abstraction_level": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "broad_trait",
      +              "facet",
      +              "competency",
      +              "condition",
      +              "process",
      +              "composite"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "alternative_names": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "attestation": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "anchored_at": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "attestation_version": {
      +            "const": "1",
      +            "type": "string"
      +          },
      +          "cite_as": {
      +            "type": "string"
      +          },
      +          "external_anchor": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "bitcoin_block_height": {
      +                "type": "string"
      +              },
      +              "service": {
      +                "type": "string"
      +              },
      +              "status": {
      +                "enum": [
      +                  "pending",
      +                  "confirmed",
      +                  "failed",
      +                  "not_submitted"
      +                ],
      +                "type": "string"
      +              },
      +              "summary": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "service",
      +              "status",
      +              "summary"
      +            ],
      +            "type": "object"
      +          },
      +          "merkle_root": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "path": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "hash": {
      +                  "type": "string"
      +                },
      +                "side": {
      +                  "enum": [
      +                    "left",
      +                    "right"
      +                  ],
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "hash",
      +                "side"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "receipt_id": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "record_id": {
      +            "type": "string"
      +          },
      +          "scope": {
      +            "type": "string"
      +          },
      +          "status": {
      +            "enum": [
      +              "anchored",
      +              "not_anchored",
      +              "anchor_unavailable"
      +            ],
      +            "type": "string"
      +          },
      +          "verify_url": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "attestation_version",
      +          "status",
      +          "record_id",
      +          "receipt_id",
      +          "anchored_at",
      +          "merkle_root",
      +          "path",
      +          "external_anchor",
      +          "scope",
      +          "verify_url",
      +          "cite_as"
      +        ],
      +        "type": "object"
      +      },
      +      "cite_as": {
      +        "type": "string"
      +      },
      +      "construct_id": {
      +        "type": "string"
      +      },
      +      "construct_ids": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "definition": {
      +        "type": "string"
      +      },
      +      "normalized_name": {
      +        "type": "string"
      +      },
      +      "variable_codes": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "variable_id": {
      +        "type": "string"
      +      },
      +      "variable_name": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "variable_name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so 'READ-ONLY — does not mutate' is largely redundant. The valuable addition is the matcher disclosure with per-field thresholds (name@0.9 / code@0.85 / definition@0.6), which tells the agent how confident a match must be and that weaker fallbacks exist — behavior no annotation or schema field conveys.

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?

Three short sentences, no filler, with the operation and its read-only nature front-loaded before the matching detail. The brace-notation input summary is compact and immediately scannable.

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?

An output schema exists, so return values need no explanation, and the read-only/safety profile is covered. What is missing for a resolve/matching tool is the failure case (no match, ambiguous match) and how the returned match confidence should be treated — meaningful gaps for an agent deciding how to act on the result.

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 carry parameter meaning, and it partially does: the thresholds map name, variable_code (code) and definition to distinct match strategies, implying name is the strongest key and definition the weakest fallback. It still never says whether variable_code is required alongside name, what format it takes, or how conflicting fields are combined.

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: 'Resolve a source-side construct ... against the canonical store', and enumerates the three input fields in brace notation. An agent knows this is a match/resolve operation rather than a list or search, though the sibling names 'constructs.lookup' and 'constructs.search' are never addressed, so the boundary is inferred rather than stated.

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?

Usage is implied by 'source-side construct ... against the canonical store' — you call it when you have a local construct and want its canonical counterpart. But there is no explicit when-to-use/when-not, no mention of what to do when matching fails, and no routing to the close siblings lookup/search.

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