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.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/json-contracts/json-contracts'

If you have feedback or need assistance with the MCP directory API, please join our Discord server