Skip to main content
Glama

Find exact text on a page

find_in_page
Read-onlyIdempotent

Find literal text in the extracted text of one approved public HTTPS page. Returns its source URL, matching line numbers, and untrusted excerpts with optional context.

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>",
      "query": "<query>"
    },
    "name": "find_in_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesApproved public HTTPS URL.
queryYesLiteral text to find. Whitespace is significant.
maxMatchesNoMaximum number of literal matches to return.
contextLinesNoNumber of context lines on either side of each match.
caseSensitiveNoMatch the original letter case.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false. The description adds return-shape details (source URL, matching line numbers, excerpts with optional context) and flags excerpts as 'untrusted,' which is useful behavioral context beyond the annotations.

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?

Two tightly written sentences, front-loaded with the core action and scope. Every clause contributes either usage scope or return information without filler.

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

Completeness5/5

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

The tool is moderate complexity, but the schema fully documents all parameters and annotations cover safety properties. The description adds the key single-page scope and return contents, including the untrusted-excerpt warning, so an agent has enough to call it correctly.

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 all five parameters are already documented in the schema. The description reinforces literal matching and optional context but adds no syntax, format, or edge-case meaning beyond what the schema provides.

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 states a specific verb and resource: 'Find literal text in the extracted text of one approved public HTTPS page.' The word 'literal' and the single-page scope distinguish it from semantic web search and multi-page fetching tools without naming siblings.

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?

It implies usage by specifying 'one approved public HTTPS page,' so an agent can infer this is for exact-text lookup within a known page. However, it does not explicitly state when to use this versus fetch_page, search_web, or compare_pages, nor does it describe cases where this tool is inappropriate.

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