Skip to main content
Glama

Run a benchmark

run_benchmark

Save a task (YAML, see get_task_format) to the user's OpenMark account and run it on the given models with real API calls. Returns a job_id and the expected cost; poll get_results. Spends the user's credits; pass max_credits to only start within a budget. Optional run settings match the app's Configure & Run panel (preset, stability_runs, max_tokens, temperature_discovery, temp_preference, timeout_profile, custom_timeout, fail_fast).

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": {
      "task_yaml": "<task_yaml>",
      "models": "<models>"
    },
    "name": "run_benchmark"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelsYesModel ids from list_models
presetNoLike the app's presets: standard = 2 passes + snappy timeouts (the default), thorough = 3 passes + patient timeouts. Explicit stability_runs / timeout_profile override it
fail_fastNoStop a model after repeated errors to save credits. Set false to let every model finish, e.g. to diagnose failures
task_yamlYesThe full task YAML (a JSON object with the same fields also works)
max_tokensNoOutput token limit per answer, 16 to 16000; 0 = no limit. Keep the default unless results show it was too low: a higher limit raises the credits needed to start. get_results flags models whose answers came back empty or near the limit; re-run those with a higher value
upload_uidNoFrom prepare_attachments, when tests use attachments
max_creditsNoBudget: if the expected cost is higher, nothing runs and you get the quote instead
custom_timeoutNoSeconds per answer, with timeout_profile custom
stability_runsNoPasses per model; 2+ shows which models are consistent
temp_preferenceNoWith temperature_discovery: which temperature wins a tielow
timeout_profileNoHow long to wait per answer: snappy 45s, patient 90s, custom = custom_timeoutsnappy
temperature_discoveryNoFind each model's best temperature for this task. Costs about 6x as much

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / max_tokens / default
      Previous value: -500New value: +1000
  2. Changed8 schema fields changed
    • addedInput schema / properties / custom_timeout
      Added value: +{
      +  "description": "Seconds per answer, with timeout_profile custom",
      +  "maximum": 600,
      +  "minimum": 120,
      +  "type": "integer"
      +}
    • addedInput schema / properties / fail_fast
      Added value: +{
      +  "default": true,
      +  "description": "Stop a model after repeated errors to save credits. Set false to let every model finish, e.g. to diagnose failures",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / max_tokens
      Added value: +{
      +  "default": 500,
      +  "description": "Output token limit per answer, 16 to 16000; 0 = no limit. Keep the default unless results show it was too low: a higher limit raises the credits needed to start. get_results flags models whose answers came back empty or near the limit; re-run those with a higher value",
      +  "maximum": 16000,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / preset
      Added value: +{
      +  "description": "Like the app's presets: standard = 2 passes + snappy timeouts (the default), thorough = 3 passes + patient timeouts. Explicit stability_runs / timeout_profile override it",
      +  "enum": [
      +    "standard",
      +    "thorough"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / stability_runs / maximum
      Previous value: -3New value: +5
    • addedInput schema / properties / temp_preference
      Added value: +{
      +  "default": "low",
      +  "description": "With temperature_discovery: which temperature wins a tie",
      +  "enum": [
      +    "low",
      +    "high"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / temperature_discovery
      Added value: +{
      +  "default": false,
      +  "description": "Find each model's best temperature for this task. Costs about 6x as much",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / timeout_profile
      Added value: +{
      +  "default": "snappy",
      +  "description": "How long to wait per answer: snappy 45s, patient 90s, custom = custom_timeout",
      +  "enum": [
      +    "snappy",
      +    "patient",
      +    "custom"
      +  ],
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / max_credits
      Added value: +{
      +  "description": "Budget: if the expected cost is higher, nothing runs and you get the quote instead",
      +  "minimum": 1,
      +  "type": "integer"
      +}
  4. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it discloses that real API calls are made, that the user's credits are spent, that expected cost is returned, and that temperature_discovery costs roughly 6x. It omits whether jobs can be cancelled or what happens on partial failure beyond fail_fast.

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 sentences, cost and budget warnings up front, and the parameter roll-call relegated to a parenthetical. The long settings list at the end is somewhat redundant with the schema but is contained and readable.

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 12-parameter cost-incurring job launcher with no annotations and no output schema, the description covers the return shape (job_id and expected cost), the follow-up action, and the budget guard. It is nearly complete, missing only failure/cancellation semantics.

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 parameters are already documented; the description only adds framing that the optional settings mirror the app's Configure & Run panel and lists their names. That grouping is mildly useful for an agent unfamiliar with the product but adds little beyond the schema text.

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?

The first sentence names a concrete verb and resource — save a task to the OpenMark account and run it against given models with real API calls — and the surrounding references (get_task_format, get_results) make it distinguishable from sibling tools like estimate_cost and watch_task.

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?

It clearly routes the agent: get the YAML format from get_task_format, poll get_results afterward, and use max_credits when a budget is required. It does not explicitly say when to prefer estimate_cost over this tool, so the exclusion is only implied.

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