Skip to main content
Glama

build_get_service_contract

Read-only

Returns the contract of a transactional platform service (cart, order, payment, booking, appointment, membership, approval, document_signature, recurring_plan, inventory, task, ticket, loyalty_points, rental, comment, attachment, feedback, notification, product, service, customer, workflows): its state machine, its operations with input fields and resulting states, the base schemas and mandatory fields, and the platform's default UI schemas. Input: service_id ('index' lists them). Op names, states and mandatory fields come from here rather than from prose.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "build_get_service_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
partsNoWhat to return (default 'both'): 'contract' = state machine/ops/schemas; 'ui_schemas' = default UI only.
service_idNoThe service id (e.g. 'cart', 'booking', 'payment'); 'index' (default) lists all.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds that this is the authoritative source for op names, states and mandatory fields, which is genuinely useful behavioral context. It says nothing about response size or cost, which matters for a tool that can return a full state machine plus all UI schemas for large services.

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-loaded with the return payload, then the input, then the 'comes from here rather than prose' caveat — a sensible order. The 22-item parenthetical service list is long, but it does convey real scope; the rest of the prose carries no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description must describe return values and it does so in concrete terms (state machine, ops, base schemas, mandatory fields, UI schemas). What remains unstated is the shape/verbosity of that output, which an agent cannot infer from a schema that does not exist.

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

Parameters3/5

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

Schema description coverage is 100%, so both parameters are already self-documenting, including the 'both'/'contract'/'ui_schemas' enum. The description only restates that service_id='index' lists services and that parts controls what is returned, adding no new meaning beyond default behavior already in the schema.

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?

States a specific verb and resource and enumerates the exact payload: state machine, operations with input fields and resulting states, base schemas, mandatory fields, and default UI schemas. It also lists the concrete service_id values (cart, order, payment, booking, ...) so an agent knows the domain it applies to. The closing clause 'Op names, states and mandatory fields come from here rather than from prose' carves out its role relative to documentation-style siblings.

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 a clear entry path: call with 'index' to list services, then with a service id to get that contract, and directs the agent here rather than to prose for op names/states. It does not, however, explain when to prefer this over adjacent siblings such as schema_get or build_get_bundle, so the alternative-selection guidance is incomplete.

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.