Skip to main content
Glama

Run a model (spends credits)

run_endpoint

run any catalogue endpoint by id with arbitrary input parameters. waits briefly for fast jobs; returns request_id for check_job otherwise. use get_endpoint_schema first to see accepted parameters.

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_id": "<endpoint_id>",
      "input": "<input>"
    },
    "name": "run_endpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesinput parameters matching the endpoint schema
sync_waitNowait up to 8s for fast jobs (default true)
endpoint_idYesexact endpoint id (e.g. "recraft/v3/text-to-image")

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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=false, destructiveHint=false and openWorldHint=true, so safety is partly carried by structured data. The description adds real behavioral context beyond that: it spends credits (title), waits only briefly, and may return a request_id requiring check_job. It does not say what a successful synchronous result contains or what happens on partial failure.

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?

Three tight sentences, front-loaded with the action and followed by execution-mode behavior and the prerequisite. 'Waits briefly' is slightly imprecise but the schema supplies the 8s bound; no filler sentences.

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?

No output schema exists, so the description carries some burden for return values; it discloses the request_id case but not the shape of a successful inline result. That gap is acceptable given get_endpoint_schema covers the nested `input` object and the sibling check_job handles polling, but it leaves a modest hole for a credit-spending tool.

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%, so endpoint_id, input and sync_wait are all documented in the schema, including the 8s wait default. The description's 'arbitrary input parameters' reinforces that `input` is endpoint-specific and defers shape to get_endpoint_schema, but adds no new syntax detail. 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 concrete verb and resource: 'run any catalogue endpoint by id with arbitrary input parameters'. It also differentiates from siblings by naming get_endpoint_schema (schema lookup) and check_job (async polling), so an agent can place it in the workflow without opening other schemas.

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

Usage Guidelines4/5

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

Gives explicit prerequisite guidance ('use get_endpoint_schema first to see accepted parameters') and describes the fork between synchronous and deferred execution. It does not state when not to use it or how it relates to list_endpoints/pricing checks, but the primary routing decision is covered.

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