Skip to main content
Glama

Get a service

get_service
Read-only

Fetch one catalog service by slug with metadata and a requestShape block. Read the endpoint's payServiceArgs before pay_service, replacing every pathParams placeholder. A checked invoke contract may include invokePath, requestExample, merchant-authored responseSchema/responseExample, and exampleEvidence: paid-run records a paid response, challenge proves only the request shape, and docs is unverified provider documentation. Only paid-run and challenge examples are pre-filled into payServiceArgs; adopt a docs example deliberately. Each endpoint also carries requestExampleQuality, grading how well it publishes the way to call it (not a callability verdict) — proven (a usable example earned against the real endpoint, including a concrete invokePath that fills a templated path), docs (a usable example from documentation, unverified), no-input (takes no request input, callable as-is), or none (no stored example — form the request from requestSchema if one is published). Merchant response shapes are sanitised, and harvested examples are published only when they validate against their schema. An endpointCheck records a dated unpaid failure. An endpoint with auth: "siwx" is not paid: it is a follow-up (a job or result poll) that only the wallet which paid an earlier call to the same service can read, so call it with pay_service after that call, filling its pathParams with the id the paid response returned; the Router signs the wallet challenge and charges nothing. A requestSchema is the merchant-declared JSON Schema of its request and is sanitised, not verified. A quote excludes the Router fee, which the budget must also cover. An unknown slug returns an error. Discovery only; no payment. Call quote_service for the live fee-inclusive total before paying.

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": {
      "slug": "<slug>"
    },
    "name": "get_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe service slug (from search_services).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Far beyond the annotations: it discloses that an unknown slug errors, that quotes exclude the Router fee, how `auth: "siwx"` endpoints behave (wallet-challenge signed, nothing charged, only the paying wallet can read), and what each `exampleEvidence` and `requestExampleQuality` value does and does not prove. That is exactly the kind of trust/side-effect context annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, and most downstream detail earns its place because there is no output schema to explain the returned fields. However, the body is one dense run-on block that mixes get-service semantics with pay-service and invoke-contract guidance, making it harder to scan than a short structured list would be.

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?

With no output schema and one required param, the description carries the full burden of describing the return payload and does so thoroughly: `requestShape`, `invokePath`, `requestExample`, merchant `responseSchema`/`responseExample`, `exampleEvidence`, `requestExampleQuality`, and `endpointCheck`. An agent can interpret the response and plan its next call without further context.

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?

There is a single parameter at 100% schema description coverage, so the schema already explains the slug and its origin. The description adds context about what the slug resolves to (`requestShape`, `payServiceArgs`, `pathParams`) but says nothing extra about the slug argument's form or constraints. Baseline 3 applies.

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?

"Fetch one catalog service by slug with metadata and a `requestShape` block" states a specific verb, a specific resource and the scope (single service, by slug). It also explicitly bounds the tool as "Discovery only; no payment", which separates it from `pay_service` and `quote_service` without needing to open their schemas.

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?

It gives concrete usage sequencing: read the endpoint's `payServiceArgs` before `pay_service`, call `quote_service` for the fee-inclusive total before paying, and the slug comes from `search_services`. The exclusions are clear ("no payment"), but the guidance is embedded mid-paragraph rather than stated up front, and no explicit "use this instead of X when…" framing exists.

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.

Resources