Skip to main content
Glama

Document viewer URL

document_url
Read-onlyIdempotent

URL that opens a filing document in the viewer, optionally scrolled to an anchor or with a passage highlighted. To highlight text, pass quote (copied from the document; case, whitespace and curly quotes are ignored when matching). The tool fetches the document and computes the highlight offsets, and returns the matched text so you can check it. Pass occurrence when the quote appears more than once. To link a section heading, use find_section; to find text you don't have word for word, use search_document; use quote for a specific sentence.

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": {
      "accession": "<accession>"
    },
    "name": "document_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
quoteNoText to highlight, as it reads in the document
anchorNoElement id in the document to scroll to (the URL #fragment)
lengthNoRaw text highlight length, with `offset`
offsetNoRaw text highlight start (advanced; use `quote` instead unless you already have offsets)
filenameNoDocument inside the filing, e.g. ex21.htm. Omit for the primary document.
accessionYesAccession number, dashed or not, or an EDGAR URL
image_srcNoHighlight an image instead: its src attribute or filename
occurrenceNoWhich match of `quote` to use, 0-based. Default 0.
image_indexNoWhich image with that src, 0-based. Default 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, but the description adds real behavior: the tool fetches the document, computes highlight offsets, and returns the matched text so the caller can verify it, plus normalization rules (case, whitespace, curly quotes ignored) and occurrence disambiguation. It stops short of saying what happens when no match is found (error vs. fallback URL), which is the one 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?

Front-loaded with the outcome sentence, then matching rules, then sibling routing. Dense but nearly every sentence carries information; the closing clause about `quote` repeats a point already implied earlier, a minor redundancy.

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 9-parameter URL-builder with no output schema, the description covers the primary path, the advanced offset path, and the fetch-and-verify return behavior. Missing only failure-mode behavior when a quote doesn't match and how multiple candidate matches surface.

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 100%, so a baseline 3 is warranted, but the description genuinely enriches it: it explains the matching semantics behind `quote`, clarifies when `occurrence` is needed, and steers away from raw `offset`/`length` by framing the quote path as primary. It leaves anchor/image_src semantics to 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 concrete verb and resource: builds a viewer URL for a filing document, optionally scrolled to an anchor or with a passage highlighted. It also positions itself against specific siblings (find_section, search_document), so an agent can separate it from them without opening either schema.

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?

Explicit routing rules are given: use find_section to link a section heading, use search_document when you don't have the text word for word, and use `quote` for a specific sentence. The anchoring/highlighting alternatives are named with the condition that selects each.

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