Skip to main content
Glama
This connector has been deprecated

This listing duplicates LexQ (io.lexq/lexq), which follows the official MCP Registry entry. Use that listing instead.

Create Fact Definition

lexq_facts_create

Register a new input variable. Key starts with a letter, then letters, numbers, and underscores (e.g. paymentAmount). Casing is not enforced. Types: STRING, NUMBER, BOOLEAN, LIST_STRING, LIST_NUMBER.

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": {
      "key": "<key>",
      "name": "<name>",
      "type": "<type>"
    },
    "name": "lexq_facts_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesVariable key. Any casing; must start with a letter.
nameYesDisplay name
typeYesValue type
isPiiNoMark as PII — masked on every read surface, revealable only in the console (audited)
isRequiredNoisRequired is stored on the definition only; the engine does not read it.
descriptionNoDescription
valueDomainNoWhich values this fact accepts. Omit for no value domain. STRING and LIST_STRING take allowedValues only; NUMBER and LIST_NUMBER take all three; BOOLEAN takes none. Declaring it lets the rule editor offer a dropdown and rejects a rule literal that could never match.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / isRequired / description
      Previous value: -"Whether this fact is required for rule evaluation"New value: +"isRequired is stored on the definition only; the engine does not read it."
  2. Changed2 schema fields changed
    • changedInput schema / properties / valueDomain / description
      Previous value: -"Which values this fact accepts. Omit for no constraint. STRING and LIST_STRING take allowedValues only; NUMBER and LIST_NUMBER take all three; BOOLEAN takes none. Declaring it lets the rule editor offer a dropdown and rejects a rule literal that could never match."New value: +"Which values this fact accepts. Omit for no value domain. STRING and LIST_STRING take allowedValues only; NUMBER and LIST_NUMBER take all three; BOOLEAN takes none. Declaring it lets the rule editor offer a dropdown and rejects a rule literal that could never match."
    • changedInput schema / properties / valueDomain / properties / allowedValues / description
      Previous value: -"Accepted values. For list types the constraint applies to each element, not to the list as a whole."New value: +"Accepted values. For list types the value domain applies to each element, not to the list as a whole."
  3. Changed1 schema field changed
    • addedInput schema / properties / valueDomain
      Added value: +{
      +  "description": "Which values this fact accepts. Omit for no constraint. STRING and LIST_STRING take allowedValues only; NUMBER and LIST_NUMBER take all three; BOOLEAN takes none. Declaring it lets the rule editor offer a dropdown and rejects a rule literal that could never match.",
      +  "properties": {
      +    "allowedValues": {
      +      "description": "Accepted values. For list types the constraint applies to each element, not to the list as a whole.",
      +      "items": {
      +        "type": [
      +          "string",
      +          "number"
      +        ]
      +      },
      +      "type": "array"
      +    },
      +    "max": {
      +      "description": "Upper bound, inclusive. Numeric types only.",
      +      "type": "number"
      +    },
      +    "min": {
      +      "description": "Lower bound, inclusive. Numeric types only.",
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
  4. Changed4 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / key / description
      Previous value: -"Variable key (snake_case)"New value: +"Variable key. Any casing; must start with a letter."
    • changedInput schema / properties / key / pattern
      Previous value: -"^[a-z][a-z0-9_]*$"New value: +"^[a-zA-Z][a-zA-Z0-9_]*$"
  5. Changed1 schema field changed
    • addedInput schema / properties / isPii
      Added value: +{
      +  "default": false,
      +  "description": "Mark as PII — masked on every read surface, revealable only in the console (audited)",
      +  "type": "boolean"
      +}
  6. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds nothing behavioral beyond that: it does not say what happens when the key already exists (reject vs overwrite), whether the new definition is immediately active for rules or requires a publish step, or what is returned. For a mutation tool in a versioned rule engine, that missing lifecycle context is a real gap.

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?

It is short and front-loaded, with the core action in the first sentence. However, the second and third sentences are pure duplication of the schema's regex pattern and type enum, so those sentences do not earn their place. Trimming them would free room for the lifecycle information that is actually missing.

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?

Seven parameters, a nested valueDomain object, and no output schema make this a moderately complex definition. The rich schema compensates for most of the description's silence, but the description never touches the PII flag, the value domain, or how the created fact interacts with rules and versions. Adequate as a label, thin as guidance for a schema of this depth.

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 100%, and the schema already documents every parameter thoroughly, including the valueDomain type-constraint matrix and the isRequired caveat that the engine ignores it. The description's key pattern and type enum merely restate what the schema already encodes, adding no new meaning. Baseline 3 applies because the schema carries the load.

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?

The description opens with a concrete verb and resource: "Register a new input variable." That is clear enough to act on, though it uses "input variable" while the tool name says "Fact Definition," and it never names the sibling it is distinct from (lexq_facts_update for existing definitions, lexq_facts_list for reading them). Purpose is clear but not differentiated from siblings.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all — nothing says to use this only for definitions that do not yet exist, or to call lexq_facts_update for existing ones. No prerequisites are stated, such as whether a draft version must exist or which scope the new fact lands in. The agent must infer the create-vs-update boundary purely from the tool name.

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