Skip to main content
Glama

Prepare automatic research

prepare_research_rule

Prepares a rule that researches rows when they first become ready or when their inputs change, with a per-run and a total spending limit. Nothing runs until the rule is approved.

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": {
      "request_id": "<request_id>",
      "name": "<name>",
      "collection_id": "<collection_id>",
      "function_id": "<function_id>",
      "bindings": "<bindings>",
      "per_batch_cents": "<per_batch_cents>",
      "total_cents": "<total_cents>",
      "valid_until": "<valid_until>"
    },
    "name": "prepare_research_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
triggerNofirst_ready
bindingsYes
batch_sizeNo
conditionsNo
request_idYes
function_idYes
total_centsYes
valid_untilYes
collection_idYes
per_batch_centsYes
reuse_completedNo
include_existingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Beyond the annotations, the description discloses two meaningful behavioral traits: the rule is budget-capped per run and overall, and nothing executes until the rule is approved. It does not explain whether preparation is idempotent, what draft state results, permission requirements, or how request_id affects retries, which leaves gaps for a mutation-style tool.

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?

Two sentences, both front-loaded and free of filler. The trigger and spending-limit scope come first, followed by the approval gate, so every sentence adds useful information without repetition.

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

Completeness2/5

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

For a 13-parameter, nested-object mutation with 0% schema description coverage and no output schema, the description is materially incomplete. It covers purpose, trigger, and budget/approval, but leaves required identifiers, bindings, conditions, and validity window unexplained, so an agent cannot confidently construct a call from the description alone.

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 description coverage is 0% and there are 13 parameters, so the description must carry parameter meaning. It explains the trigger behavior and spending-limit parameters but leaves most required inputs undocumented, including request_id, name, collection_id, function_id, bindings, valid_until, batch_size, conditions, reuse_completed, and include_existing.

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?

The description clearly states a specific verb and resource: it prepares a research rule that runs on first-ready or input-change triggers, with spending limits. It also distinguishes itself implicitly from approval siblings via "Nothing runs until the rule is approved," though it does not explicitly name alternatives like approve_research_rule or patch_research_rule.

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

Usage Guidelines3/5

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

It gives implied usage context by describing when the rule fires (first become ready or inputs change) and that spending limits apply. However, it offers no explicit when-to-use versus when-not-to-use guidance and does not name sibling tools such as prepare_investigation_batch or patch_research_rule.

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.