Skip to main content
Glama

Test a loaded prompt

run_loaded_prompt

For coding agents working in a code repository, not for chat: Test a prompt from load_prompts, using its cases and checks and drafting any that are missing. Spends credit, never more than max_spend_usd by estimate. Each call starts a new paid run: to follow it, call get_test, not this again.

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": {
      "prompt_id": "<prompt_id>"
    },
    "name": "run_loaded_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
prompt_idYesFrom load_prompts or get_started.
max_spend_usdNoLimit for this test. Default 50, or 2 from a chat app, never above the credit left.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / max_spend_usd / description
      Previous value: -"Limit for this test. Default 50."New value: +"Limit for this test. Default 50, or 2 from a chat app, never above the credit left."
  2. Changed1 schema field changed
    • changedInput schema / properties / max_spend_usd / description
      Previous value: -"Limit for this test. Default 5."New value: +"Limit for this test. Default 50."
  3. Changed1 schema field changed
    • changedInput schema / properties / max_spend_usd / description
      Previous value: -"Limit for this test. Default 1."New value: +"Limit for this test. Default 5."
  4. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations mark this as non-read-only and open-world; the description earns credit beyond them by disclosing that each call is a new paid run that consumes credit, that cost is bounded by max_spend_usd on an estimate basis, and that the run cannot be polled through this tool. The one gap is 'drafting any that are missing' — it is not clear whether drafted cases are persisted to the prompt (a side effect) or only used for this run.

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?

Three short sentences: audience/scope first, then what the tool does and what it costs, then the follow-up routing. No filler, and the most decision-relevant constraints (not for chat, costs credit, use get_test to follow) are front-loaded.

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?

With no output schema, the description compensates well by pointing to get_test for results and warning against re-invoking. Almost complete for a paid, open-world operation; only the persistence semantics of auto-drafted cases are left unresolved, which matters given destructiveHint=false.

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 baseline is 3; the description still adds meaning by framing max_spend_usd as an estimate-based cap on a paid run rather than a hard quota, which affects how aggressively an agent should set it. prompt_id's provenance is already covered in the schema ('From load_prompts or get_started').

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?

Names a specific verb and resource ('Test a prompt from load_prompts'), states what it operates on ('its cases and checks'), and adds an unusual behavior ('drafting any that are missing'). The audience scoping ('for coding agents working in a code repository, not for chat') separates it cleanly from the chat-oriented siblings and from test_prompt/get_test.

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?

Explicitly states when to use it (a prompt previously obtained from load_prompts, in a code repository) and when not to (chat). It also names the alternative for a related need: 'to follow it, call get_test, not this again' — an unusually clear exclusion that prevents a common repeat-call mistake.

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.