Skip to main content
Glama

Read and compare legal definitions

get_defined_term
Read-onlyIdempotent

Use this to read and compare the held legislative definitions of a term, such as payment transaction in PSD2 and PSR. These are source definitions, not a general dictionary or a legal opinion. Every definition verbatim and resolved, clustered by what the text actually says, with the chronological and concurrent views and word-level comparisons between them. Resolution follows the cited version, never legislative succession: a definition citing a repealed act resolves to that act and is labelled repealed, not silently replaced by its successor's wording. A term the corpus does not define is refused with suggestions — nothing is substituted. references_in gives the reverse edges: which definitions lean on this one.

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": {
      "term": "<term>"
    },
    "name": "get_defined_term"
  }
}

Input Schema

NameRequiredDescriptionDefault
termYesThe defined term, as written in the legislation ("payment account"). Matched exactly after normalisation; a term the corpus does not define is refused with suggestions, never answered with a neighbouring one.
viewNoWhich text clusters and comparisons run on. "resolved" (default) follows each definition's pointers to its root; "verbatim" uses the text as each instrument prints it.
on_dateNoISO date. Adds operative_on_date and temporal_state_on_date per definer, and makes the concurrent view that date's rather than the release's.
comparisonNoWhich comparisons to compute. "adjacent" (default) compares consecutive distinct clusters in chronological order; {baseline: cluster_id} compares one cluster against every other; {pair: [cite, cite]} compares two named definitions; {concurrent_pairs: {}} compares every pair that was in force at once.
instrumentNoNarrow the definitions listed to one definer. The clusters, views and comparisons stay corpus-wide: what the term means elsewhere does not change because you asked about one instrument.

Output Schema

NameRequiredDescriptionDefault
dataYes
tierNo
errorYes
coverageYes
warningsYes
paginationYes
provenanceYes
derivationsYes
corpus_releaseYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / tier
      Added value: +{
      +  "enum": [
      +    "public",
      +    "licensed"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / instrument / anyOf
      Previous value: -[
      -  {
      -    "maxLength": 64,
      -    "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 64,
      +    "pattern": "^[A-Za-z0-9]+(?:[ ._-][A-Za-z0-9]+)*$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Changed6 schema fields changed
    • changedInput schema / properties / comparison / anyOf
      Previous value: -[
      -  {
      -    "anyOf": [
      -      {
      -        "const": "adjacent",
      -        "type": "string"
      -      },
      -      {
      -        "properties": {
      -          "baseline": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "baseline"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "properties": {
      -          "pair": {
      -            "items": false,
      -            "maxItems": 2,
      -            "minItems": 2,
      -            "prefixItems": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "string"
      -              }
      -            ],
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "pair"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "properties": {
      -          "concurrent_pairs": {
      -            "properties": {
      -              "cursor": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              }
      -            },
      -            "type": "object"
      -          }
      -        },
      -        "required": [
      -          "concurrent_pairs"
      -        ],
      -        "type": "object"
      -      }
      -    ]
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "anyOf": [
      +      {
      +        "const": "adjacent",
      +        "type": "string"
      +      },
      +      {
      +        "properties": {
      +          "baseline": {
      +            "maxLength": 64,
      +            "pattern": "^[0-9a-f]+$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "baseline"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "properties": {
      +          "pair": {
      +            "items": false,
      +            "maxItems": 2,
      +            "minItems": 2,
      +            "prefixItems": [
      +              {
      +                "maxLength": 128,
      +                "pattern": "^[A-Za-z0-9 ()-]+$",
      +                "type": "string"
      +              },
      +              {
      +                "maxLength": 128,
      +                "pattern": "^[A-Za-z0-9 ()-]+$",
      +                "type": "string"
      +              }
      +            ],
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "pair"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "properties": {
      +          "concurrent_pairs": {
      +            "properties": {
      +              "cursor": {
      +                "anyOf": [
      +                  {
      +                    "maxLength": 512,
      +                    "pattern": "^[A-Za-z0-9_-]+$",
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "concurrent_pairs"
      +        ],
      +        "type": "object"
      +      }
      +    ]
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / instrument / anyOf
      Added value: +[
      +  {
      +    "maxLength": 64,
      +    "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / instrument / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedInput schema / properties / on_date / anyOf
      Added value: +[
      +  {
      +    "maxLength": 32,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / on_date / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedInput schema / properties / term / maxLength
      Added value: +256
  4. Changed7 schema fields changed
    • changedInput schema / properties / comparison / anyOf
      Previous value: -[
      -  {
      -    "anyOf": [
      -      {
      -        "const": "adjacent",
      -        "type": "string"
      -      },
      -      {
      -        "properties": {
      -          "baseline": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "baseline"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "properties": {
      -          "pair": {
      -            "prefixItems": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "string"
      -              }
      -            ],
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "pair"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "properties": {
      -          "concurrent_pairs": {
      -            "properties": {
      -              "cursor": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              }
      -            },
      -            "type": "object"
      -          }
      -        },
      -        "required": [
      -          "concurrent_pairs"
      -        ],
      -        "type": "object"
      -      }
      -    ]
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "anyOf": [
      +      {
      +        "const": "adjacent",
      +        "type": "string"
      +      },
      +      {
      +        "properties": {
      +          "baseline": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "baseline"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "properties": {
      +          "pair": {
      +            "items": false,
      +            "maxItems": 2,
      +            "minItems": 2,
      +            "prefixItems": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "string"
      +              }
      +            ],
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "pair"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "properties": {
      +          "concurrent_pairs": {
      +            "properties": {
      +              "cursor": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "concurrent_pairs"
      +        ],
      +        "type": "object"
      +      }
      +    ]
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / instrument / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / instrument / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / on_date / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / on_date / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / data / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "clusters": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "cluster_id": {
      -              "type": "string"
      -            },
      -            "member_cites": {
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "cluster_id",
      -            "member_cites"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "comparisons": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "from_cite": {
      -              "type": "string"
      -            },
      -            "ops": {
      -              "anyOf": [
      -                {
      -                  "items": {
      -                    "prefixItems": [
      -                      {
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "string"
      -                      }
      -                    ],
      -                    "type": "array"
      -                  },
      -                  "type": "array"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "to_cite": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "from_cite",
      -            "to_cite",
      -            "ops"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "definitions": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "cite": {
      -              "type": "string"
      -            },
      -            "defined_within": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "instrument_id": {
      -              "type": "string"
      -            },
      -            "qualifier": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "resolution_status": {
      -              "type": "string"
      -            },
      -            "resolved_definition": {
      -              "type": "string"
      -            },
      -            "verbatim_definition": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "instrument_id",
      -            "qualifier",
      -            "defined_within",
      -            "cite",
      -            "verbatim_definition",
      -            "resolved_definition",
      -            "resolution_status"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "references_in": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "cite": {
      -              "type": "string"
      -            },
      -            "instrument_id": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "instrument_id",
      -            "cite"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "term": {
      -        "type": "string"
      -      },
      -      "view": {
      -        "type": "string"
      -      },
      -      "views": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "concurrent": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "cite": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "cite"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "evolution": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "cite": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "cite"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "evolution",
      -          "concurrent"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "term",
      -      "view",
      -      "definitions",
      -      "clusters",
      -      "views",
      -      "comparisons",
      -      "references_in"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "clusters": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "cluster_id": {
      +              "type": "string"
      +            },
      +            "member_cites": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "cluster_id",
      +            "member_cites"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "comparisons": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "from_cite": {
      +              "type": "string"
      +            },
      +            "ops": {
      +              "anyOf": [
      +                {
      +                  "items": {
      +                    "items": false,
      +                    "maxItems": 2,
      +                    "minItems": 2,
      +                    "prefixItems": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "string"
      +                      }
      +                    ],
      +                    "type": "array"
      +                  },
      +                  "type": "array"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "to_cite": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "from_cite",
      +            "to_cite",
      +            "ops"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "definitions": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "cite": {
      +              "type": "string"
      +            },
      +            "defined_within": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "instrument_id": {
      +              "type": "string"
      +            },
      +            "qualifier": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "resolution_status": {
      +              "type": "string"
      +            },
      +            "resolved_definition": {
      +              "type": "string"
      +            },
      +            "verbatim_definition": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "instrument_id",
      +            "qualifier",
      +            "defined_within",
      +            "cite",
      +            "verbatim_definition",
      +            "resolved_definition",
      +            "resolution_status"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "references_in": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "cite": {
      +              "type": "string"
      +            },
      +            "instrument_id": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "instrument_id",
      +            "cite"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "term": {
      +        "type": "string"
      +      },
      +      "view": {
      +        "type": "string"
      +      },
      +      "views": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "concurrent": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "cite": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "cite"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "evolution": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "cite": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "cite"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "evolution",
      +          "concurrent"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "term",
      +      "view",
      +      "definitions",
      +      "clusters",
      +      "views",
      +      "comparisons",
      +      "references_in"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / pagination / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "complete": {
      -        "type": "boolean"
      -      },
      -      "next_cursor": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "total": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "complete",
      -      "next_cursor"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "complete": {
      +        "type": "boolean"
      +      },
      +      "next_cursor": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "total": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "complete",
      +      "next_cursor"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  5. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, the description discloses genuinely non-obvious behavior: resolution follows the cited version rather than legislative succession, repealed citations are labelled repealed instead of being silently swapped for successor wording, and undefined terms are refused with suggestions rather than substituted. It also explains that references_in surfaces reverse dependency edges, which an agent could not infer from the schema.

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?

Purpose and scope are front-loaded in the first two sentences, and the remaining sentences each cover distinct ground (resolution rules, refusal behavior, reverse edges). A few clauses are dense and could be split for readability, but no sentence is filler.

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 five-parameter analytical read tool with an output schema and full annotation coverage, the description supplies what the structured fields cannot: resolution policy, refusal policy, and the temporal/concurrent view semantics. An agent has enough to decide when to call it and to predict how results are clustered and compared.

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 schema already carries parameter documentation, but the description adds real meaning: it clarifies that clusters, views and comparisons remain corpus-wide even when instrument narrows the listed definers, and it explains that resolution semantics differ between the resolved and verbatim views. The comparison modes are largely described in the schema, so it does not fully supersede it.

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 opening sentence gives a specific verb pair (read and compare) and a precise resource (held legislative definitions of a term), with a concrete example (payment transaction in PSD2 and PSR). It also draws the boundary that separates it from search_defined_terms and general reference tools by stating these are source definitions, not a dictionary or legal opinion.

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

Usage Guidelines4/5

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

The description makes clear when to reach for it: when you need the actual held definition text of a term and how it compares across instruments and time. It also states an explicit exclusion (not a dictionary, not a legal opinion) and the refusal path for undefined terms. It stops short of naming a sibling to use instead for finding which terms exist, so 4 rather than 5.

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