Skip to main content
Glama

Save schema

save_schema

Save a directly authored schema and return its ID and link. Mostly for a document that starts from a schema Entity Enricher generated — read with get_schema, revised, saved as a new schema or variant — or one the user already holds (an import). Not for creating a schema from scratch: to derive one from samples or data, call create_schema_from_sample instead of writing the document yourself. Its staged steps judge one question at a time (which nested objects are entities, what identifies each, expertise domains, flags, closed vocabularies), the code keeps only types that hold for every observed value, and the run is recorded with the schema, where the user watches it on the Monitor and reviews each judgement. A document written in one go skips those checks and leaves no trace of how it was decided; generation runs on your own model by default, so saving directly spares no credits. Requires editor; no LLM call. schema_content is a JSON Schema 2020-12 document in Entity Enricher's supported dialect: title, type='object', properties, optional $defs and x-* extension sections. The server validates it and makes colliding names unique. Entity definitions, enum vocabularies and localized fields have different projection rules. Unknown keywords are dropped, not rejected: read ignored_keywords (path, keyword, hint) and applied_repairs in the result — a property flag such as semantic_id placed on a $defs entity object lands there, with the level it is read at. This always creates a schema: to change one in place use update_schema or the property tools. A minimal valid example and supported annotations are in enricher://docs/schema-reference.

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>",
      "schema_content": "<schema_content>"
    },
    "name": "save_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
tagsNoOptional tags.
is_pinnedNoPin it to the top of listings.
schema_contentYesFull schema document: title, type=object, properties and optional $defs/x-* sections. See enricher://docs/schema-reference for a minimal example.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond annotations, it discloses that editor permission is required, no LLM call occurs, the server validates and deduplicates names, unknown keywords are dropped rather than rejected, and ignored_keywords/applied_repairs should be inspected. It also clarifies that this always creates a schema and never modifies one in place, which is essential behavioral context for a write operation.

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?

The purpose and alternatives are front-loaded, but the description is long and includes a substantial detour explaining how create_schema_from_sample's staged steps, monitoring, and credit behavior differ. That rationale is useful context, yet it makes the definition less concise than necessary for invoking save_schema.

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?

An output schema exists, so return details need not be fully repeated, but the description still notes the returned ID and link. Given the tool's complexity, it covers the key prerequisites, validation behavior, repair reporting, schema dialect, and alternative tools sufficiently for an agent to call it correctly.

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

Parameters5/5

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

Schema coverage is 75%, but the description adds substantial meaning for schema_content: the expected JSON Schema 2020-12 dialect, supported sections such as $defs and x-* extensions, server validation behavior, projection rules for entities/enums/localized fields, and how dropped keywords surface in the result. This goes well beyond the input schema's descriptions.

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 first sentence states a specific verb and resource: saving a directly authored schema and returning its ID and link. It explicitly distinguishes this from create_schema_from_sample for deriving schemas and update_schema for in-place changes, so an agent can identify the correct operation.

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?

The description gives explicit when-to-use guidance: revised Entity Enricher schemas, variants, or imports. It also gives when-not-to-use guidance by naming create_schema_from_sample for sample-derived schemas and update_schema/property tools for modifications, with clear conditions for each alternative.

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.