Skip to main content
Glama
json-contracts

JSON Contracts

Official

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoReserved for future HTTP transport.3000
DEBUGNoEnables debug logging to stderr.false
MCP_TRANSPORTNoTransport. v1 implements stdio.stdio
API_AUTH_TOKENNoReserved for future HTTP Bearer auth.
WATCH_CONTRACTSNoWatches local contracts and reloads on changes.true
JSON_CONTRACTS_DIRNoFolder containing contract .json files../json-contracts
ALLOW_INVALID_CONTRACTSNoIf true, invalid contracts are skipped with warnings.false

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}
prompts
{}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_contractsA

List currently loaded JSON contracts.

read_contractC

Read a loaded JSON contract.

get_json_contractB

Return schema, rules, examples, instructions, and input so the agent/model can produce JSON.

get_edit_contractA

Return schema, rules, current JSON, edit instructions, and input so the agent/model can edit existing JSON.

validate_jsonC

Validate agent-produced JSON against a contract schema.

get_repair_contractC

Return schema, rules, previous invalid JSON, validation errors, and repair instructions.

statusA

Return json-contracts MCP server status and loaded contract metadata.

reload_contractsA

Rescan the JSON contracts directory and reload valid contracts.

Prompts

Interactive templates invoked by user choice

NameDescription
json_contract_promptRender a reusable prompt that tells the agent/model how to produce JSON from a selected contract.
edit_contract_promptRender a reusable prompt that tells the agent/model how to edit existing JSON from a selected contract.
repair_contract_promptRender a reusable prompt that tells the agent/model how to repair JSON that failed validation.

Resources

Contextual data attached and managed by the client

NameDescription
chart-generationConvert natural language into a structured BI chart generation spec.
create-filterConvert natural language into a structured API filter object.
ecommerce-returnConvert customer messages into a structured ecommerce return, exchange, refund, or cancellation request.
expense-reportConvert receipts, reimbursement notes, or expense messages into a structured finance expense report line item.
legal-client-intakeConvert prospective client messages into a structured legal intake object for routing and conflict checks.
patient-intakeConvert patient messages into a structured healthcare intake and triage object.
real-estate-leadConvert buyer, renter, seller, or tenant messages into a structured real estate lead profile.
support-ticketConvert natural language into a support ticket object.

TDQS

A3.7/5.0

Scored across 8 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: retrieving contracts for different tasks (editing, producing, repairing), listing/reading contracts, reloading, checking status, and validating JSON. No overlapping functionality.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern using lowercase and underscores (e.g., get_edit_contract, list_contracts, validate_json). The only exception is 'status', but it is a common single-word tool name.

Tool Count5/5

With 8 tools, the server is well-scoped for managing JSON contracts, covering listing, reading, reloading, validation, and specialized contract retrieval without being excessive.

Completeness5/5

The tool set covers all necessary operations for interacting with JSON contracts: listing, reading, reloading, validating, and retrieving contracts for specific use cases (edit, produce, repair). No obvious gaps for the stated purpose.

Maintenance

ActivityInactive
ResponsivenessNo issues