Skip to main content
Glama

retrieve_listing

Read-onlyIdempotent

Read one currently visible listing and its dated evidence. Optional assessment_history contains ten actual completed and applied Directory observations or retained linter scans, with source and actual rules version (unknown if absent). Completed and applied unassessed attempts have null grade/score and a fixed reason; they are never F or the shown grade. Profile HTML groups consecutive same-reason unassessed attempts while API rows retain every attempt. Up to 52 Directory observations and 100 linter scans are retained. Supply the returned history_cursor for ten more raw history rows; continuation returns listing_id and assessment_history only. Cursors expire after one hour or a history change; current identity, hiding, canonical, grade and health masks are rechecked on every page. Hidden or ineligible listings return 404; stale history cursors return 410; invalid artifacts fail 503. No job discovery, new probes, grade change or paid delivery certification. Public directory reads share 30 requests per client IP per UTC minute. Search returns at most 100 services per call; a 963-service snapshot needs 10 calls at limit=100. Follow returned cursors and avoid concurrent bursts; 429 means wait for the next UTC minute. No quota increase is implied. Never signs payments.

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": {
      "listing_id": "<listing_id>"
    },
    "name": "retrieve_listing"
  }
}

Input Schema

NameRequiredDescriptionDefault
listing_idYesVisible listing identity, its unique 16-character public reference, or exact service host including an optional port. Hidden, unknown and ambiguous references return 404.
history_cursorNoOpaque returned assessment_history.next_cursor. Never fabricate or alter it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / history_cursor
      Added value: +{
      +  "description": "Opaque returned assessment_history.next_cursor. Never fabricate or alter it.",
      +  "maxLength": 2048,
      +  "type": "string"
      +}
  2. Changed4 schema fields changed
    • addedInput schema / properties / listing_id / description
      Added value: +"Visible listing identity, its unique 16-character public reference, or exact service host including an optional port. Hidden, unknown and ambiguous references return 404."
    • addedInput schema / properties / listing_id / maxLength
      Added value: +258
    • removedInput schema / properties / listing_id / pattern
      Removed value: -"^[a-f0-9]{64}$"
    • changedInput schema / properties / listing_id / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
  3. Changed1 schema field changed
    • changedInput schema / properties / listing_id / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
  4. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond readOnly/idempotent annotations, it discloses retention caps (52 observations, 100 scans), cursor lifetime of one hour and invalidation on history change, per-page revalidation, and distinct 404/410/503 semantics. The 30 requests per client IP per UTC minute limit and 429 handling are also given.

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?

Purpose is front-loaded and the body is dense but organized. However, sentences about search (100 services per call, 963-service snapshot needing 10 calls) and 'Never signs payments' do not belong to a single-listing read tool and dilute the operative guidance.

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?

For a two-parameter read with no output schema, it explains return content (assessment_history semantics, unassessed attempts, HTML vs API grouping), pagination, and failure modes. Complete enough to call correctly, with minor ambiguity about how it relates to the history-specific sibling tool.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3; the description earns above that by explaining that history_cursor is opaque, that cursors expire and yield 410, and that continuation returns only listing_id and assessment_history. It adds operational meaning the schema alone does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource: 'Read one currently visible listing and its dated evidence.' The scope (single listing, visible only, plus assessment history) is concrete enough to distinguish it from list/search style siblings, though no sibling such as retrieve_listing_history is named as an alternative.

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?

Explicit about usage: supply history_cursor to page further, and it states what continuation returns. Exclusions are stated ('No job discovery, new probes, grade change or paid delivery certification'). It lacks an explicit 'use this instead of X' routing statement against similar read tools.

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