Skip to main content
Glama

author_adapter

Create a verified sitewise browser adapter by supplying CSS selectors; it navigates the URL, checks extraction, and saves the adapter for reuse.

Instructions

Create a new sitewise browser adapter for a site you have inspected. Provide the CSS selectors you found (use browser_goto + browser_text/browser_eval to inspect first). sitewise navigates the URL, VERIFIES your selectors extract data, and saves the adapter — so it appears in list_commands and works for everyone. Returns the extracted sample rows, or an error if the selectors matched nothing.

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": {
      "site": "<site>",
      "command": "<command>",
      "url": "<url>",
      "itemSelector": "<itemSelector>",
      "fields": "<fields>"
    },
    "name": "author_adapter"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYespage to scrape (may contain {query}/{0} placeholders)
siteYesnew adapter name, e.g. mysite
fieldsYesoutput field name -> how to read it: selector relative to the item (omit to use the item itself), attr for an attribute like href, absolute for absolute URLs
commandYescommand name, e.g. list
descriptionNo
itemSelectorYesCSS selector matching each repeated item/row

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden and does disclose meaningful traits: it navigates the URL, verifies the selectors actually extract data, and persists a shared adapter visible to all users. It omits what happens on a name collision with an existing adapter, whether saving is reversible, auth/network failure behavior, and any rate limits — gaps that matter for a tool with persistent global side effects.

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 sentences, front-loaded with the action, then the prerequisite, then the verification and persistence guarantee plus the return contract. No filler; each sentence adds a distinct fact an agent needs.

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 6-parameter write tool with a nested fields object and no output schema, the description covers the key contract: the return is extracted sample rows or an error if selectors matched nothing, which compensates for the missing output schema. It lacks only collision/overwrite and failure-mode behavior.

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 83%, so the baseline is 3, but the description adds real meaning: selectors must be CSS selectors and the fields map defines how each item is read. It also clarifies the url parameter accepts placeholders ({query}/{0}) and frames the whole call as an extracted-row contract, which goes mildly beyond the schema.

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 ("Create a new sitewise browser adapter") plus the scope constraint ("for a site you have inspected"). It also implicitly separates itself from the browser_* inspection siblings by naming them as the prerequisite step rather than as alternatives.

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?

Gives an explicit workflow prerequisite: inspect first with browser_goto plus browser_text/browser_eval, then supply the selectors found. It also tells the agent the downstream effect (adapter shows up in list_commands and works for everyone). It stops short of stating when NOT to use it, e.g., checking list_commands for an existing adapter name or when a built-in adapter already covers the site.

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