Skip to main content
Glama
RecurPost MCP Server
by dinwal

call_endpoint

Destructive

Call any RecurPost API endpoint by ID with consistent login, headers, and error handling; use find_endpoints to retrieve endpoint IDs and required parameters before sending.

Instructions

Call any RecurPost API endpoint by its id, with the same login, headers and error handling as the other tools. Use find_endpoints first to get the id and its params; use the curated tools when one fits. Ids not in the catalog are refused, and missing required params are reported before anything is sent. Endpoints that delete, publish, send email or spend credits act for real: ask the user first, and only send confirm: true after they agree.

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": {
      "endpoint": "<endpoint>"
    },
    "name": "call_endpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsNoThe endpoint's params as a JSON object, using the names find_endpoints lists. workspace_id is optional on workspace endpoints. Leave out for endpoints without params.
endpointYesEndpoint id from find_endpoints, for example queue_list or inbox_reply_comment.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint and openWorldHint true; the description goes beyond them by naming the specific effect classes (delete, publish, send email, spend credits), the required user-confirmation gate, and preflight refusals for unknown ids and missing params. The one weak point is that 'confirm: true' is referenced without saying where it belongs, given the schema allows only endpoint and params.

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?

Four dense sentences that are front-loaded with the core action, followed by the prerequisite, then the failure modes, then the safety gate. Nothing is redundant, though the closing confirmation sentence is slightly under-specified for its importance.

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 generic open-world proxy with no output schema, the description covers auth parity, preflight validation, catalog restriction and destructive-action gating. It does not describe response shape, pagination, or rate-limit behavior, which matters for an arbitrary-endpoint proxy but is partly excused by the absence of an output schema.

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 the baseline is 3, but the description adds real meaning: params must use names listed by find_endpoints, workspace_id is optional on workspace endpoints, and params should be omitted entirely for endpoints without params. It also introduces the confirm flag, which is not represented in the schema at all, leaving its placement ambiguous.

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 ('call any RecurPost API endpoint by its id') and frames the tool as a generic escape hatch, explicitly contrasting it with the curated tools. An agent can immediately distinguish it from find_endpoints (discovery) and the curated per-resource tools.

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 explicit sequencing ('Use find_endpoints first to get the id and its params') and an explicit exclusion rule ('use the curated tools when one fits', plus 'Ids not in the catalog are refused'). It adds a further conditional gate for destructive endpoints, so both when-to-use and when-not-to-use are covered.

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