Skip to main content
Glama

web_fetch

Read-only

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

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

A3.9/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true and openWorldHint=true, so safety and variability are covered. The description adds 'extract relevant content' and objective-based filtering but gives no detail on partial-failure behavior, rate limits, or how extraction is performed, which is a modest, not severe, 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?

The 'Purpose' and 'Ideal Use Cases' headings make the content easy to parse and the purpose is front-loaded. There is minor redundancy between 'specific web URLs' and 'specific URLs you've already identified,' but no filler or irrelevant explanation.

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 simple fetch tool with two parameters, full schema coverage, and an output schema, the description provides enough context about when and why to invoke it. It lacks details about failure modes or concurrency, but those are not critical given the schema and annotations already carry that burden.

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 description coverage is 100%, so the parameters are fully documented in the input schema. The description's 'relevant content' phrase implies the objective parameter influences extraction, but it does not add new meaning beyond what the schema already provides, keeping this at the baseline 3.

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?

The description opens with a specific verb + resource: 'Fetch and extract relevant content from specific web URLs.' The two ideal use cases explicitly contrast with the sibling search tool ('URLs returned by a web search'), so an agent can immediately distinguish this from web_search_preview.

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?

It provides clear context by listing ideal use cases: extracting from already-identified URLs or deepening exploration of search results. It implies when to use it instead of a search tool, but it does not explicitly state when not to use it or name the sibling as an alternative, so it stops short of full exclusion guidance.

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