Skip to main content
Glama

lobstr.io

run_operation

Run one operation (POST /v2/run) and get one page of records in results, with count, cost and balance. options is the operation's input (see find_operations or get_operation).

    `fields`: the record fields you need, by path ("name", "rating", "phone", "address.full"); `object`, `id`
    and `position` always come. Ask only for what you need: every field of a full page is large (20 places with
    all their fields are about 70,000 characters, more than you may be able to read in one answer), the same
    page with four fields is a few thousand.

    `limit`: only the first N records of the page, for a search or a list; the call costs the same. With
    `fields`, it keeps a large page readable: 100 Google News articles with four fields are about 50,000
    characters, with `limit` 20 a fifth of it.

    One call is one page: records_per_call in find_operations (20 places, 20 reviews). For more, call
    run_operation again with the answer's `next` as it is (its operation, options and fields) until you have
    enough or `next` is null: 50 places are 3 calls. Each call costs its credits. Pass an `idempotency_key` to
    retry a call safely: the same key never runs or bills twice.

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": {
      "operation": "<operation>",
      "options": "<options>"
    },
    "name": "run_operation"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
fieldsNo
optionsYes
operationYes
idempotency_keyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false and openWorldHint=true; the description adds the material behavior: every call bills credits, the billing/idempotency guarantee that the same key never runs or bills twice, and a concrete size budget (~70,000 characters for a full page vs a few thousand for four fields). That is exactly the operational context an agent needs before spending credits.

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 action and the return shape, then grouped by parameter, which makes it easy to scan. It is somewhat long and revisits the character-size argument twice (places and Google News), which is redundant though not harmful.

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

Completeness5/5

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

There is no output schema, so the description must explain the response and it does: results, count, cost, balance and `next`. Combined with the pagination and cost model, an agent can call this correctly and follow up without further information.

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 0%, so the description carries the burden and mostly does: fields are explained as paths with examples and the guaranteed 'object, id, position'; limit is 'only the first N records of the page' at the same cost; options points to find_operations/get_operation; idempotency_key explains retry safety. The `operation` parameter itself is only implicitly defined (an operation identifier obtainable via find_operations) rather than stated outright.

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 ('Run one operation (POST /v2/run)') plus what comes back ('one page of records in results, with count, cost and balance'). It also routes the agent to find_operations/get_operation for the operation and its input, so it is clearly distinguishable from those siblings.

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 when-to-use guidance for each lever: limit 'for a search or a list', fields for narrowing large pages, idempotency_key 'to retry a call safely', and the pagination rule (call again with the answer's `next` until enough or null). It also warns that each call costs its credits, which tells the agent when not to over-call.

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.