Skip to main content
Glama

endpoint_by_tag

Read-onlyIdempotent

Lists all endpoints for a given tag ID, displaying their HTTP methods, paths, summaries, and deprecation status. Use to explore API categories or answer questions like 'what's in the orders tag?'

Instructions

endpoint_by_tag

Lists all endpoints grouped under a specific tag within a collection.

When to use

Use this tool when:

  • You have a tag ID and want to see all endpoints in that category

  • The user asks "show me all pets endpoints" or "what's in the orders tag?"

  • You've identified a tag via tag_by_id or tag_by_collection and want its endpoints

To see the tag's metadata (title, method count) without listing endpoints, use tag_by_id instead.

Parameters

  • tagId (required): The 32-character MD5 hash ID of the tag

Returns

A list of endpoints with their IDs, HTTP methods, paths, summaries, and deprecation status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagIdYesrequired,
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, and the description complements this by specifying the return payload: 'A list of endpoints with their IDs, HTTP methods, paths, summaries, and deprecation status.' No side effects are claimed. It doesn't discuss error cases, but that's not expected for a read-only lookup.

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?

Structured with headings, no filler. Every section adds practical information—summary, use cases, parameter format, and return values.

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?

For a single-parameter read-only tool, the description covers purpose, usage timing, alternatives, parameter format, and return shape. No output schema exists, but the return list description compensates.

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?

The schema only states tagId is required, but the description enriches it: 'The 32-character MD5 hash ID of the tag.' This gives the agent the exact format needed, exceeding schema baseline.

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?

The description opens with a precise statement: 'Lists all endpoints grouped under a specific tag within a collection.' It also contrasts with tag_by_id, clarifying the tool's unique role among siblings.

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

Usage Guidelines5/5

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

The 'When to use' section explicitly lists scenarios (having a tag ID, user queries) and gives an alternative: 'To see the tag's metadata (title, method count) without listing endpoints, use tag_by_id instead.' This is model behavior.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mmadfox/swag2mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server