Skip to main content
Glama

introspect_rest_api

Discover WordPress REST API endpoints and schemas by searching names, descriptions, or HTTP methods. Use it to find available routes, their arguments, and response schemas before calling them.

Instructions

Explore WordPress REST API endpoints and their schemas. Search for endpoints by name, description, or HTTP method. Works with built-in schema reference or optionally with a live WordPress site via siteUrl parameter. Use this to discover available endpoints, their arguments, and response schemas.

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": {
      "query": "<query>",
      "conversationId": "<conversationId>"
    },
    "name": "introspect_rest_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesSearch query to find relevant REST API endpoints. Examples: 'posts', 'users', 'create page', 'media upload', 'categories', 'settings'. Use specific terms for better results.
methodNoFilter endpoints by HTTP method.
siteUrlNoOptional: URL of a live WordPress site to fetch real endpoint discovery data. Example: 'https://example.com'. If omitted, uses the built-in schema reference.
namespaceNoFilter endpoints by namespace. Examples: 'wp/v2', 'wc/v3'. Leave empty to search all namespaces.
conversationIdYesThe conversation ID obtained from learn_wordpress_api.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It usefully discloses the dual mode (built-in reference vs live site via siteUrl), but omits that this is a read-only operation, what authentication a live site requires, and whether results are limited or paginated.

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?

Front-loaded with the core action and kept to four short lines, but the final sentence largely restates the first two (discovering endpoints and schemas), so there is some redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has five parameters, a required dependency on another tool, and no output schema, so the description should say more about what a result set looks like (endpoint list with arguments and response schema) and any result limits. It covers the what and the mode switch but leaves the return behavior and live-site prerequisites implicit.

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 description coverage is 100%, so the schema already documents all five parameters thoroughly. The description only reinforces the siteUrl switch between built-in and live data; it adds no syntax, format, or interaction semantics beyond that, so the baseline 3 applies.

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: exploring WordPress REST API endpoints and their schemas, searchable by name, description, or HTTP method. It is distinguishable from siblings like fetch_full_docs or search_docs, though it never explicitly contrasts itself with them.

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?

'Use this to discover available endpoints, their arguments, and response schemas' gives a clear use context, but there are no exclusions, no when-not-to guidance, and no explicit routing between this tool and the docs-search siblings. The dependency on learn_wordpress_api for conversationId is only visible in the schema, not the description.

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