Skip to main content
Glama

web_learn_recipe

Generate and validate a declarative JSON driver recipe from a live target page, with optional naming and workspace save path for reuse.

Instructions

Auto-generate and validate a declarative JSON driver recipe from a live target page.

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": {
      "url": "<url>"
    },
    "name": "web_learn_recipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesTarget HTTP/HTTPS URL to inspect and learn.
nameNoOptional recipe name.
save_pathNoOptional workspace-relative path to save the learned recipe JSON.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it does not say whether the tool only reads the page or interacts with it, whether credentials/session are needed, what 'validate' checks, whether it is safe to re-run, or how long a live crawl may take. The only implicit behavior is that save_path causes a workspace write, which is left unstated.

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?

A single front-loaded sentence with no filler and no repetition; it is efficient, though its brevity cuts against the behavioral clarity the tool needs.

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?

With no annotations and no output schema, the description is the only place to learn what a 'recipe' contains, what validation outcomes look like, or whether the result is returned or only persisted. For a three-parameter generative tool, this leaves real gaps an agent must guess at.

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 each parameter is already documented, and the description adds only that the URL is inspected live. It offers no detail on how name affects the recipe, path conventions for save_path, or what happens when save_path is omitted.

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 names specific verbs (auto-generate and validate) and a concrete resource (a declarative JSON driver recipe) plus its source (a live target page). That is enough to distinguish it from siblings like web_apply_write or web_extract, but it never explicitly contrasts itself with the planning/applying tools in its family.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no statement of prerequisites (live network reachability, authentication to the target site), and no mention of when to prefer web_probe or web_record_cassette instead. The agent must infer workflow position from the sibling names alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.