Skip to main content
Glama
roanbrasil

contract-first-mcp

by roanbrasil

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HANDLE_KEYYesSecret key for signing and verifying handles
PYTHONPATHNoPath to the source directory for the packagesrc

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
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
convert_unitsB

Convert between km/mi, kg/lb and °C/°F. Contract: contracts/convert_units (latest: v2).

create_workspace_handleB

Mint an explicit, signed handle for cross-call state (replaces protocol sessions).

The model passes the handle back to other tools as an argument. It is visible in the conversation on purpose: auditable state beats hidden state.

verify_workspace_handleA

Check that a handle was minted by this server and was not tampered with.

list_contractsA

Introspection: every tool contract version and its pinned SHA-256.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.8/5.0

Scored across 4 tools

Disambiguation5/5

Each tool has a clearly distinct role: contract introspection, unit conversion, handle creation, and handle verification. Even the two handle tools are complementary rather than overlapping, with create vs verify being unambiguous.

Naming Consistency5/5

All tool names follow a consistent verb_noun snake_case pattern: list_contracts, convert_units, create_workspace_handle, verify_workspace_handle. This makes the set predictable and easy for an agent to navigate.

Tool Count5/5

Four tools is a well-scoped size for a focused server: one meta/introspection tool, one utility tool, and a small handle lifecycle pair. No tool feels redundant or out of place.

Completeness4/5

The main gap is that workspace handles can be created and verified but not explicitly revoked or expired. For the stated contract-first scope, this is a minor workaround rather than a critical missing capability.

Maintenance

ActivityMaintained
ResponsivenessNo issues