Skip to main content
Glama

web_fetch

Read-onlyIdempotent

Purpose: Fetch and extract relevant content from specific web URLs.

Ideal Use Cases:

  • Extracting content from specific URLs you've already identified

  • Exploring URLs returned by a web search in greater depth

For multiple independent extraction objectives, make separate web_fetch calls concurrently. Put related URLs that share one objective in a single call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlsYesList of URLs to extract content from. Must be valid HTTP/HTTPS URLs. Maximum 10 URLs per request.
objectiveNoNatural-language description of what information you're looking for from the URLs. Limit to 200 characters.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
usageNoUsage metrics for the extract request.
errorsYesExtract errors: requested URLs not in the results.
resultsYesSuccessful extract results.
warningsNoWarnings for the extract request, if any.
extract_idYesExtract request ID, e.g. `extract_cad0a6d2dec046bd95ae900527d880e7`

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / $defs / UsageItem / properties / name / examples
      Previous value: -[
      -  "sku_search_additional_results",
      -  "sku_extract_excerpts"
      -]New value: +[
      +  "sku_search",
      +  "sku_extract_excerpts"
      +]
  2. Changed12 schema fields changed
    • addedInput schema / properties / objective / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / objective / default
      Added value: +null
    • changedInput schema / properties / objective / description
      Previous value: -"What information you're looking for from the URLs."New value: +"Natural-language description of what\ninformation you're looking for from the URLs. Limit to 200 characters."
    • removedInput schema / properties / objective / maxLength
      Removed value: -200
    • addedInput schema / properties / objective / title
      Added value: +"Objective"
    • removedInput schema / properties / objective / type
      Removed value: -"string"
    • changedInput schema / properties / urls / description
      Previous value: -"URLs to extract content from."New value: +"List of URLs to extract content from. Must be valid\nHTTP/HTTPS URLs. Maximum 10 URLs per request."
    • removedInput schema / properties / urls / items / format
      Removed value: -"uri"
    • removedInput schema / properties / urls / maxItems
      Removed value: -10
    • addedInput schema / properties / urls / title
      Added value: +"Urls"
    • addedInput schema / title
      Added value: +"extract_toolArguments"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "ExtractError": {
      +      "description": "Extract error details.",
      +      "properties": {
      +        "content": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Content returned for http client or server errors, if any.",
      +          "title": "Content"
      +        },
      +        "error_type": {
      +          "description": "Error type.",
      +          "title": "Error Type",
      +          "type": "string"
      +        },
      +        "http_status_code": {
      +          "anyOf": [
      +            {
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "HTTP status code, if available.",
      +          "title": "Http Status Code"
      +        },
      +        "url": {
      +          "title": "Url",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "url",
      +        "error_type",
      +        "http_status_code",
      +        "content"
      +      ],
      +      "title": "ExtractError",
      +      "type": "object"
      +    },
      +    "ExtractResult": {
      +      "description": "Extract result for a single URL.",
      +      "properties": {
      +        "excerpts": {
      +          "anyOf": [
      +            {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "Relevant excerpted content from the URL, formatted as markdown.",
      +          "title": "Excerpts"
      +        },
      +        "full_content": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "Full content from the URL formatted as markdown, if requested.",
      +          "title": "Full Content"
      +        },
      +        "publish_date": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "Publish date of the webpage in YYYY-MM-DD format, if available.",
      +          "title": "Publish Date"
      +        },
      +        "title": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "Title of the webpage, if available.",
      +          "title": "Title"
      +        },
      +        "url": {
      +          "description": "URL associated with the search result.",
      +          "title": "Url",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "url"
      +      ],
      +      "title": "ExtractResult",
      +      "type": "object"
      +    },
      +    "UsageItem": {
      +      "description": "Usage item for a single operation.",
      +      "properties": {
      +        "count": {
      +          "description": "Count of the SKU.",
      +          "examples": [
      +            1
      +          ],
      +          "title": "Count",
      +          "type": "integer"
      +        },
      +        "name": {
      +          "description": "Name of the SKU.",
      +          "examples": [
      +            "sku_search_additional_results",
      +            "sku_extract_excerpts"
      +          ],
      +          "title": "Name",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "count"
      +      ],
      +      "title": "UsageItem",
      +      "type": "object"
      +    },
      +    "Warning": {
      +      "description": "Human-readable message for a task.",
      +      "properties": {
      +        "detail": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "Optional detail supporting the warning.",
      +          "title": "Detail"
      +        },
      +        "message": {
      +          "description": "Human-readable message.",
      +          "title": "Message",
      +          "type": "string"
      +        },
      +        "type": {
      +          "description": "Type of warning. Note that adding new warning types is considered a backward-compatible change.",
      +          "enum": [
      +            "spec_validation_warning",
      +            "input_validation_warning",
      +            "warning"
      +          ],
      +          "examples": [
      +            "spec_validation_warning",
      +            "input_validation_warning"
      +          ],
      +          "title": "Type",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "message"
      +      ],
      +      "title": "Warning",
      +      "type": "object"
      +    }
      +  },
      +  "description": "Fetch result.",
      +  "properties": {
      +    "errors": {
      +      "description": "Extract errors: requested URLs not in the results.",
      +      "items": {
      +        "$ref": "#/$defs/ExtractError"
      +      },
      +      "title": "Errors",
      +      "type": "array"
      +    },
      +    "extract_id": {
      +      "description": "Extract request ID, e.g. `extract_cad0a6d2dec046bd95ae900527d880e7`",
      +      "title": "Extract Id",
      +      "type": "string"
      +    },
      +    "results": {
      +      "description": "Successful extract results.",
      +      "items": {
      +        "$ref": "#/$defs/ExtractResult"
      +      },
      +      "title": "Results",
      +      "type": "array"
      +    },
      +    "usage": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "$ref": "#/$defs/UsageItem"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Usage metrics for the extract request.",
      +      "title": "Usage"
      +    },
      +    "warnings": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "$ref": "#/$defs/Warning"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Warnings for the extract request, if any.",
      +      "title": "Warnings"
      +    }
      +  },
      +  "required": [
      +    "extract_id",
      +    "results",
      +    "errors"
      +  ],
      +  "title": "ExtractResponse",
      +  "type": "object"
      +}
  3. Changed12 schema fields changed
    • removedInput schema / properties / objective / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / objective / default
      Removed value: -null
    • changedInput schema / properties / objective / description
      Previous value: -"Natural-language description of what\ninformation you're looking for from the URLs. Limit to 200 characters."New value: +"What information you're looking for from the URLs."
    • addedInput schema / properties / objective / maxLength
      Added value: +200
    • removedInput schema / properties / objective / title
      Removed value: -"Objective"
    • addedInput schema / properties / objective / type
      Added value: +"string"
    • changedInput schema / properties / urls / description
      Previous value: -"List of URLs to extract content from. Must be valid\nHTTP/HTTPS URLs. Maximum 10 URLs per request."New value: +"URLs to extract content from."
    • addedInput schema / properties / urls / items / format
      Added value: +"uri"
    • addedInput schema / properties / urls / maxItems
      Added value: +10
    • removedInput schema / properties / urls / title
      Removed value: -"Urls"
    • removedInput schema / title
      Removed value: -"extract_toolArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "$defs": {
      -    "ExtractError": {
      -      "description": "Extract error details.",
      -      "properties": {
      -        "content": {
      -          "anyOf": [
      -            {
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "Content returned for http client or server errors, if any.",
      -          "title": "Content"
      -        },
      -        "error_type": {
      -          "description": "Error type.",
      -          "title": "Error Type",
      -          "type": "string"
      -        },
      -        "http_status_code": {
      -          "anyOf": [
      -            {
      -              "type": "integer"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "HTTP status code, if available.",
      -          "title": "Http Status Code"
      -        },
      -        "url": {
      -          "title": "Url",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "url",
      -        "error_type",
      -        "http_status_code",
      -        "content"
      -      ],
      -      "title": "ExtractError",
      -      "type": "object"
      -    },
      -    "ExtractResult": {
      -      "description": "Extract result for a single URL.",
      -      "properties": {
      -        "excerpts": {
      -          "anyOf": [
      -            {
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "default": null,
      -          "description": "Relevant excerpted content from the URL, formatted as markdown.",
      -          "title": "Excerpts"
      -        },
      -        "full_content": {
      -          "anyOf": [
      -            {
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "default": null,
      -          "description": "Full content from the URL formatted as markdown, if requested.",
      -          "title": "Full Content"
      -        },
      -        "publish_date": {
      -          "anyOf": [
      -            {
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "default": null,
      -          "description": "Publish date of the webpage in YYYY-MM-DD format, if available.",
      -          "title": "Publish Date"
      -        },
      -        "title": {
      -          "anyOf": [
      -            {
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "default": null,
      -          "description": "Title of the webpage, if available.",
      -          "title": "Title"
      -        },
      -        "url": {
      -          "description": "URL associated with the search result.",
      -          "title": "Url",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "url"
      -      ],
      -      "title": "ExtractResult",
      -      "type": "object"
      -    },
      -    "UsageItem": {
      -      "description": "Usage item for a single operation.",
      -      "properties": {
      -        "count": {
      -          "description": "Count of the SKU.",
      -          "examples": [
      -            1
      -          ],
      -          "title": "Count",
      -          "type": "integer"
      -        },
      -        "name": {
      -          "description": "Name of the SKU.",
      -          "examples": [
      -            "sku_search_additional_results",
      -            "sku_extract_excerpts"
      -          ],
      -          "title": "Name",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "name",
      -        "count"
      -      ],
      -      "title": "UsageItem",
      -      "type": "object"
      -    },
      -    "Warning": {
      -      "description": "Human-readable message for a task.",
      -      "properties": {
      -        "detail": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": true,
      -              "type": "object"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "default": null,
      -          "description": "Optional detail supporting the warning.",
      -          "title": "Detail"
      -        },
      -        "message": {
      -          "description": "Human-readable message.",
      -          "title": "Message",
      -          "type": "string"
      -        },
      -        "type": {
      -          "description": "Type of warning. Note that adding new warning types is considered a backward-compatible change.",
      -          "enum": [
      -            "spec_validation_warning",
      -            "input_validation_warning",
      -            "warning"
      -          ],
      -          "examples": [
      -            "spec_validation_warning",
      -            "input_validation_warning"
      -          ],
      -          "title": "Type",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "type",
      -        "message"
      -      ],
      -      "title": "Warning",
      -      "type": "object"
      -    }
      -  },
      -  "description": "Fetch result.",
      -  "properties": {
      -    "errors": {
      -      "description": "Extract errors: requested URLs not in the results.",
      -      "items": {
      -        "$ref": "#/$defs/ExtractError"
      -      },
      -      "title": "Errors",
      -      "type": "array"
      -    },
      -    "extract_id": {
      -      "description": "Extract request ID, e.g. `extract_cad0a6d2dec046bd95ae900527d880e7`",
      -      "title": "Extract Id",
      -      "type": "string"
      -    },
      -    "results": {
      -      "description": "Successful extract results.",
      -      "items": {
      -        "$ref": "#/$defs/ExtractResult"
      -      },
      -      "title": "Results",
      -      "type": "array"
      -    },
      -    "usage": {
      -      "anyOf": [
      -        {
      -          "items": {
      -            "$ref": "#/$defs/UsageItem"
      -          },
      -          "type": "array"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "default": null,
      -      "description": "Usage metrics for the extract request.",
      -      "title": "Usage"
      -    },
      -    "warnings": {
      -      "anyOf": [
      -        {
      -          "items": {
      -            "$ref": "#/$defs/Warning"
      -          },
      -          "type": "array"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "default": null,
      -      "description": "Warnings for the extract request, if any.",
      -      "title": "Warnings"
      -    }
      -  },
      -  "required": [
      -    "extract_id",
      -    "results",
      -    "errors"
      -  ],
      -  "title": "ExtractResponse",
      -  "type": "object"
      -}New value: +null
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "ExtractError": {
      +      "description": "Extract error details.",
      +      "properties": {
      +        "content": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Content returned for http client or server errors, if any.",
      +          "title": "Content"
      +        },
      +        "error_type": {
      +          "description": "Error type.",
      +          "title": "Error Type",
      +          "type": "string"
      +        },
      +        "http_status_code": {
      +          "anyOf": [
      +            {
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "HTTP status code, if available.",
      +          "title": "Http Status Code"
      +        },
      +        "url": {
      +          "title": "Url",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "url",
      +        "error_type",
      +        "http_status_code",
      +        "content"
      +      ],
      +      "title": "ExtractError",
      +      "type": "object"
      +    },
      +    "ExtractResult": {
      +      "description": "Extract result for a single URL.",
      +      "properties": {
      +        "excerpts": {
      +          "anyOf": [
      +            {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "Relevant excerpted content from the URL, formatted as markdown.",
      +          "title": "Excerpts"
      +        },
      +        "full_content": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "Full content from the URL formatted as markdown, if requested.",
      +          "title": "Full Content"
      +        },
      +        "publish_date": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "Publish date of the webpage in YYYY-MM-DD format, if available.",
      +          "title": "Publish Date"
      +        },
      +        "title": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "Title of the webpage, if available.",
      +          "title": "Title"
      +        },
      +        "url": {
      +          "description": "URL associated with the search result.",
      +          "title": "Url",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "url"
      +      ],
      +      "title": "ExtractResult",
      +      "type": "object"
      +    },
      +    "UsageItem": {
      +      "description": "Usage item for a single operation.",
      +      "properties": {
      +        "count": {
      +          "description": "Count of the SKU.",
      +          "examples": [
      +            1
      +          ],
      +          "title": "Count",
      +          "type": "integer"
      +        },
      +        "name": {
      +          "description": "Name of the SKU.",
      +          "examples": [
      +            "sku_search_additional_results",
      +            "sku_extract_excerpts"
      +          ],
      +          "title": "Name",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "count"
      +      ],
      +      "title": "UsageItem",
      +      "type": "object"
      +    },
      +    "Warning": {
      +      "description": "Human-readable message for a task.",
      +      "properties": {
      +        "detail": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": true,
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "Optional detail supporting the warning.",
      +          "title": "Detail"
      +        },
      +        "message": {
      +          "description": "Human-readable message.",
      +          "title": "Message",
      +          "type": "string"
      +        },
      +        "type": {
      +          "description": "Type of warning. Note that adding new warning types is considered a backward-compatible change.",
      +          "enum": [
      +            "spec_validation_warning",
      +            "input_validation_warning",
      +            "warning"
      +          ],
      +          "examples": [
      +            "spec_validation_warning",
      +            "input_validation_warning"
      +          ],
      +          "title": "Type",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "message"
      +      ],
      +      "title": "Warning",
      +      "type": "object"
      +    }
      +  },
      +  "description": "Fetch result.",
      +  "properties": {
      +    "errors": {
      +      "description": "Extract errors: requested URLs not in the results.",
      +      "items": {
      +        "$ref": "#/$defs/ExtractError"
      +      },
      +      "title": "Errors",
      +      "type": "array"
      +    },
      +    "extract_id": {
      +      "description": "Extract request ID, e.g. `extract_cad0a6d2dec046bd95ae900527d880e7`",
      +      "title": "Extract Id",
      +      "type": "string"
      +    },
      +    "results": {
      +      "description": "Successful extract results.",
      +      "items": {
      +        "$ref": "#/$defs/ExtractResult"
      +      },
      +      "title": "Results",
      +      "type": "array"
      +    },
      +    "usage": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "$ref": "#/$defs/UsageItem"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Usage metrics for the extract request.",
      +      "title": "Usage"
      +    },
      +    "warnings": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "$ref": "#/$defs/Warning"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Warnings for the extract request, if any.",
      +      "title": "Warnings"
      +    }
      +  },
      +  "required": [
      +    "extract_id",
      +    "results",
      +    "errors"
      +  ],
      +  "title": "ExtractResponse",
      +  "type": "object"
      +}
  5. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered. The description adds genuine behavioral context the annotations cannot express: concurrent vs. single-call batching semantics tied to objective grouping.

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-loads purpose, then uses a short bulleted block for use cases and a compact batching rule. Every line serves a purpose; the only minor cost is mild repetition between the purpose line and the first use case.

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?

With an output schema present, the description needn't explain return values, and annotations cover the safety profile. What remains is fully sufficient for an agent to select and invoke correctly; only explicit sibling naming and the parameter limits are absent.

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 100%, so the baseline is 3; the description adds a bit more by explaining how the 'urls' and implicit 'objective' grouping should be partitioned across calls. It still doesn't restate the 10-URL cap or 200-char objective limit, which live only in the schema.

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+resource ('Fetch and extract relevant content from specific web URLs'), which is unambiguous. It implicitly separates itself from the 'web search' path by framing use cases around URLs the agent has 'already identified' versus discovering them, though it never names the sibling web_search_preview directly.

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?

Provides an explicit 'Ideal Use Cases' list and, unusually, batching policy: separate calls for independent objectives, one call for related URLs sharing an objective. This tells the agent not just when to use it but how to structure invocation.

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.

Resources