Skip to main content
Glama

get_post_by_slug

Read-only

Devuelve una entrada publicada y pública por su slug (solo lectura). Es la forma natural de resolver un enlace del blog; usa get_post cuando ya conoces el ID numérico.

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_post_by_slug"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesSlug de la entrada (parte final de su URL).
post_typeNoRestringe la búsqueda a un tipo de contenido público.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so "(solo lectura)" adds nothing; the real value is the disclosure that only published, public entries are returned, which tells the agent drafts and private posts are filtered out rather than erroring. It does not say what happens when the slug resolves to nothing (empty result vs error), which is the remaining behavioral gap.

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?

Two sentences, front-loaded with what the tool returns and followed by routing guidance, with no filler. The parenthetical "(solo lectura)" duplicates the readOnlyHint annotation and could be dropped without loss.

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 tool with full schema coverage and no output schema, the description covers purpose, scope and routing adequately. It stops short of indicating the shape of the returned entry or the not-found behavior, which an agent would need when composing a follow-up call.

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 coverage is 100% and both parameters carry their own descriptions, including the enum for post_type, so the schema already does the explanatory work. The description reinforces that slug is a URL tail but adds no meaning about how post_type interacts with the lookup beyond what the schema states.

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 ("Devuelve una entrada publicada y pública por su slug") plus a visibility constraint that scopes the result set. It explicitly separates itself from get_post by lookup key (slug vs numeric ID), so an agent can choose between them without opening a schema.

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?

Gives both a positive use case ("resolver un enlace del blog") and an explicit alternative with its selecting condition ("usa get_post cuando ya conoces el ID numérico"). The "publicada y pública" qualifier also implicitly signals that drafts/private content are out of scope, which functions as a when-not.

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