Skip to main content
Glama

webFetch

Fetch content from a URL, optionally parse HTML, and extract specific elements with a CSS selector for job postings, company info, or web research.

Instructions

Fetches content from a URL and optionally parses HTML. Useful for getting job postings, company info, or web content.

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": "webFetch"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesURL to fetch
formatNoOutput format (default: "text")text
timeoutNoRequest timeout in milliseconds (default: 30000)
selectorNoCSS selector to extract specific content

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/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 behavioral burden, and it discloses almost nothing beyond the basic action. It does not say whether authentication, cookies, or headers are required, whether JavaScript is rendered, whether redirects are followed, how failures surface, or what the response looks like. For an unannotated network-fetch tool this is a significant gap.

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?

Two short sentences with the core action front-loaded and no filler. The use-case list is slightly redundant with the first sentence but earns its place by hinting at applicability.

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

Completeness3/5

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

For a simple read-only fetch tool with a fully documented schema and no output schema, the definition covers the essentials. It remains thin on failure behavior, JS rendering, and what content is returned when a selector matches nothing, which an agent would need to call it confidently.

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 all four parameters, their defaults, and the format enum are already documented in the schema. The description only hints at HTML parsing, which corresponds to format/selector but adds no syntax, interaction details, or examples beyond the schema's own text.

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?

States a specific verb and resource: fetches URL content, with optional HTML parsing. The second sentence lists concrete use cases (job postings, company info, web content). It does not differentiate itself from siblings like scrapeLinkedInJob or readFile, so it stops short of a 5.

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?

Usage is only implied through example targets ('job postings, company info, or web content'). There is no explicit when-not guidance and no routing to alternatives such as scrapeLinkedInJob for LinkedIn pages or readFile for local content.

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