Skip to main content
Glama

register_schema

Register a new schema or schema version. Supports both global and user-specific schemas.

Instructions

Register a new schema or schema version. Supports both global and user-specific schemas.

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": {
      "entity_type": "<entity_type>",
      "schema_definition": "<schema_definition>",
      "reducer_config": "<reducer_config>"
    },
    "name": "register_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoBypass the entity-type naming guards (forbidden test-artifact patterns and the plural-name guard) for this call only. Use when entity_type is rejected with a message naming "force: true" as the remedy. Does not affect any other validation.
user_idNo
activateNo
entity_typeYes
user_specificNo
reducer_configYes
schema_versionNo1.0
schema_definitionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.29.1
    • addedInput schema / properties / entity_type / minLength
      Added value: +1
    • changedInput schema / properties / force / description
      Previous value: -"Bypass the entity-type naming guards (forbidden test-artifact patterns and the plural-name guard) for this call only. Required when entity_type is rejected with a message naming \"force: true\" as the remedy — e.g. a name the plural guard misclassifies (like \"hypothesis\"). Does not affect any other validation."New value: +"Bypass the entity-type naming guards (forbidden test-artifact patterns and the plural-name guard) for this call only. Use when entity_type is rejected with a message naming \"force: true\" as the remedy. Does not affect any other validation."
    • addedInput schema / properties / reducer_config / additionalProperties
      Added value: +true
    • removedInput schema / properties / reducer_config / description
      Removed value: -"Per-field conflict-resolution config. merge_policies maps each field to a strategy: last_write (default — latest observed_at wins), highest_priority (the observation with the largest source_priority wins), most_specific, or merge_array; with an optional tie_breaker (observed_at | source_priority). Set highest_priority to honor source_priority — without it, source_priority is stored but ignored."
    • addedInput schema / properties / schema_definition / additionalProperties
      Added value: +true
    • removedInput schema / properties / schema_definition / description
      Removed value: -"Schema definition with fields object"
    • addedInput schema / properties / schema_definition / properties
      Added value: +{
      +  "planning": {
      +    "additionalProperties": false,
      +    "description": "Optional registry declaration of a planning stratum. Relative numeric ordering is instance-defined; read_only never grants write authority.",
      +    "properties": {
      +      "level": {
      +        "description": "Finite numeric rank. Higher planning ranks are above lower ranks.",
      +        "type": "number"
      +      },
      +      "read_only": {
      +        "description": "Read-only reference stratum; omission or false does not authorize edits.",
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "level"
      +    ],
      +    "type": "object"
      +  }
      +}
    • removedInput schema / properties / user_id / description
      Removed value: -"User ID for user-specific schema (required if user_specific=true)"
  2. Changed1 schema field changedv0.25.0
    • addedInput schema / properties / force
      Added value: +{
      +  "default": false,
      +  "description": "Bypass the entity-type naming guards (forbidden test-artifact patterns and the plural-name guard) for this call only. Required when entity_type is rejected with a message naming \"force: true\" as the remedy — e.g. a name the plural guard misclassifies (like \"hypothesis\"). Does not affect any other validation.",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changedv0.21.0
    • changedInput schema / properties / reducer_config / description
      Previous value: -"Reducer configuration with merge policies"New value: +"Per-field conflict-resolution config. merge_policies maps each field to a strategy: last_write (default — latest observed_at wins), highest_priority (the observation with the largest source_priority wins), most_specific, or merge_array; with an optional tie_breaker (observed_at | source_priority). Set highest_priority to honor source_priority — without it, source_priority is stored but ignored."
  4. Addedv0.15.0
  5. Removedv0.14.0
  6. Addedv0.12.1
  7. Removedv0.11.0
  8. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It only says the tool registers schemas and supports global/user-specific variants, without disclosing validation behavior, conflict handling, permissions, activation effects, or what happens when force is used.

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?

The description is short and front-loaded with the core action. It contains no wasted wording, though its brevity leaves important operational details unstated for a complex eight-parameter mutation tool.

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

Completeness2/5

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

The tool has nested objects, eight parameters, no annotations, and no output schema, so the description should do more. It establishes the basic action and global/user-specific scope but omits behavioral, validation, and parameter guidance needed for reliable invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 8 parameters and only 13% schema description coverage, the description must compensate for missing parameter meaning. It hints at global versus user-specific schema scope, but does not explain entity_type, schema_definition, reducer_config, schema_version, activate, force, or user_id.

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 gives a specific verb and resource: "Register a new schema or schema version." It also distinguishes the global/user-specific schema scope, but it does not explicitly differentiate this tool from nearby schema-management siblings such as update_schema_incremental.

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?

The description states what the tool does but gives no explicit guidance on when to use it versus alternatives. It mentions global and user-specific schemas without explaining how or when to choose between them.

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