Skip to main content
Glama

Fetch a topic

fetch_topic
Read-onlyIdempotent

Fetch one topic and its active-offer course count by Comidoc slug.

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": "fetch_topic"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYes

Output Schema

NameRequiredDescriptionDefault
metaYes
foundYes
topicYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed17 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedOutput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedOutput schema / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / meta / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / meta / properties / coupon_codes_included / description
      Removed value: -"Whether coupon_code values are included in this response."
    • removedOutput schema / properties / meta / properties / quota / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / meta / properties / quota / properties / limit / maximum
      Removed value: -9007199254740991
    • removedOutput schema / properties / meta / properties / quota / properties / limit / minimum
      Removed value: -0
    • removedOutput schema / properties / meta / properties / quota / properties / remaining / maximum
      Removed value: -9007199254740991
    • removedOutput schema / properties / meta / properties / quota / properties / remaining / minimum
      Removed value: -0
    • removedOutput schema / properties / meta / properties / quota / properties / resets_at / pattern
      Removed value: -"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    • removedOutput schema / properties / meta / properties / quota / properties / used / maximum
      Removed value: -9007199254740991
    • removedOutput schema / properties / meta / properties / quota / properties / used / minimum
      Removed value: -0
    • removedOutput schema / properties / topic / anyOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "active_offer_courses_count": {
      -        "maximum": 9007199254740991,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "aliases": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "courses_count": {
      -        "maximum": 9007199254740991,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "description": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "keywords": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "slug": {
      -        "type": "string"
      -      },
      -      "title": {
      -        "type": "string"
      -      },
      -      "updated_at": {
      -        "format": "date-time",
      -        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "slug",
      -      "title",
      -      "description",
      -      "keywords",
      -      "aliases",
      -      "courses_count",
      -      "updated_at"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / topic / properties
      Added value: +{
      +  "active_offer_courses_count": {
      +    "type": "integer"
      +  },
      +  "aliases": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "courses_count": {
      +    "type": "integer"
      +  },
      +  "description": {
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "id": {
      +    "type": "string"
      +  },
      +  "keywords": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "slug": {
      +    "type": "string"
      +  },
      +  "title": {
      +    "type": "string"
      +  },
      +  "updated_at": {
      +    "format": "date-time",
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / topic / required
      Added value: +[
      +  "id",
      +  "slug",
      +  "title",
      +  "description",
      +  "keywords",
      +  "aliases",
      +  "courses_count",
      +  "updated_at"
      +]
    • addedOutput schema / properties / topic / type
      Added value: +[
      +  "object",
      +  "null"
      +]
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=false, so the safety and determinism profile is covered. The description adds that a course count is computed and returned, but says nothing about behavior for a missing/unknown slug (error vs empty) or freshness of the count.

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

Conciseness5/5

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

A single sentence with no filler, front-loaded with the action and resource, then the return content and the key. Nothing here is redundant.

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?

An output schema exists, so return values need not be spelled out, and the tool has one required parameter. For a simple read-only lookup the definition is nearly sufficient; only the slug format and failure behavior are unaddressed.

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?

The single slug parameter has 0% schema description coverage, so the description must carry the load. It does the most valuable part by naming the identifier namespace ('Comidoc slug'), distinguishing it from an internal ID or a title, but gives no format or example and does not mention the 1-120 length bound.

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?

States a specific verb and resource ('Fetch one topic') and adds what comes back ('active-offer course count'), plus the lookup key ('Comidoc slug'). The singular 'one topic' implicitly separates it from list_topics and get_trending_topics, though no sibling is named.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: an agent can infer it should call this when it has a slug and needs a single topic's detail. There is no explicit when-to-use statement, no precondition, and no routing to alternatives such as list_topics or get_trending_topics.

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