Skip to main content
Glama

schema_save

DestructiveIdempotent

Saves schemas into a project, validating them first and linking them to the project. Returns the saved schemas with their UUIDs; skipped schemas carry the platform's reason.

Input format: flat schema objects in schemas (not wrapped in schema_content); the tool detects the schema type and wraps it.

Required fields: name, namespace, parent_type, attributes. namespace is the app's namespace (e.g. 'shop'); the schema is stored as namespace:name. Required attributes carry "mandatory": true.

Attribute types: 'string' for text, 'float' for decimal numbers (not 'number'), 'integer' for whole numbers, 'boolean' for true/false.

project_uuid defaults to the key's project; a project-scoped key saves only into its own project. A schema skipped for compatibility warnings is applied with force_upload=true.

Example: { "schemas": [{ "name": "product", "namespace": "shop", "description": "Product catalog entry", "parent_type": "tenant", "attributes": [ {"name": "title", "type": "string", "mandatory": true}, {"name": "price", "type": "float"}, {"name": "stock", "type": "integer"} ] }] }

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": {
      "schemas": "<schemas>"
    },
    "name": "schema_save"
  }
}

Input Schema

NameRequiredDescriptionDefault
schemasYesArray of schema definitions to save.
force_uploadNoApply changes that only have compatibility WARNINGS (default: false). Breaking changes are still refused.
project_uuidNoProject to save into (defaults to your key's project; required for a domain-admin key).
skip_existingNoSkip schemas that already exist (default: true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / force_upload
      Added value: +{
      +  "description": "Apply changes that only have compatibility WARNINGS (default: false). Breaking changes are still refused.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / project_uuid / description
      Previous value: -"Optional project UUID to auto-link saved schemas to."New value: +"Project to save into (defaults to your key's project; required for a domain-admin key)."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds real substance: schemas are validated before saving, linked to the project, and the call returns saved schemas with UUIDs while skipped ones carry the platform's reason. The one notable gap is that destructiveHint is never explained — it does not say whether an existing schema with the same namespace:name gets overwritten despite skip_existing defaulting to true.

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?

Front-loads the outcome sentence, then breaks format rules into short labeled blocks, making it easy to scan despite its length. The embedded example is genuinely useful for a nested payload, though it partially repeats the required-fields and attribute-type lines above it.

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?

No output schema exists, and the description covers the return shape (schemas with UUIDs, skip reasons). Given a free-form array-of-objects payload with no nesting hints in the schema, the required-field list, type vocabulary, and worked example supply everything an agent needs to construct a valid call.

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?

Goes well past the schema's one-line parameter summaries: it specifies that entries are flat schema objects not wrapped in schema_content, lists the required fields, explains that namespace makes the stored key namespace:name, maps 'mandatory': true, and enumerates allowed attribute types including the 'float' vs 'number' trap. It also clarifies force_upload only clears warnings while breaking changes are still refused, which the schema text omits.

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 and resource plus the internal sequence: 'Saves schemas into a project, validating them first and linking them to the project.' That is far more than a restatement of the name, but it never distinguishes itself from siblings like schema_validate or schema_update, leaving the agent to infer whether validation or update is handled here too.

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?

Gives concrete conditional guidance: force_upload=true when a schema is skipped for compatibility warnings, project_uuid defaults to the key's project, and a project-scoped key saves only into its own project. It stops short of naming when to prefer schema_update or schema_validate instead, so the boundaries of the tool remain implicit.

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.