Skip to main content
Glama
david-wang-0

okular-mcp

by david-wang-0

PDF: links on a page

links
Read-only

Extract anchor text and target locations from a PDF page to follow citations, sections, figures, or URLs; use page_text to jump to the target line.

Instructions

Links on a page with their targets, to follow citations yourself.

Links on a page (default: the page shown): anchor text and line, then the target page and line for internal links (citations, sections, figures) or the URL. Follow one with page_text(page=..., lines="-...").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

readOnlyHint=true already declares the safe read profile, and an output schema exists to describe return values. The description does add the meaningful default that omitting page means 'the page shown' and clarifies the internal-vs-external target distinction, but there is little else (no pagination, ordering, or volume limits).

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?

Roughly two sentences, front-loaded with the core purpose, and the follow-up call is a compact inline example. Minor redundancy from restating 'Links on a page' twice, but nothing is padded.

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 read-only tool with an output schema, the description covers purpose, return structure, the page default, and the workflow continuation. The only material gap is the unexplained 'path' parameter, which no other structured field covers.

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?

With 0% schema description coverage, the description must carry both parameters. It compensates for 'page' by explaining the null default ('default: the page shown') and shows it used in the page_text example, but 'path' is never explained, leaving half the parameters undocumented.

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?

The description names a specific verb+resource ('Links on a page with their targets') and states exactly what is returned: anchor text and line, plus target page/line for internal links or the URL. It implicitly separates itself from siblings like page_text by casting itself as the citation-following step rather than the text-fetch step.

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 gives clear usage context ('to follow citations yourself') and an explicit follow-up recipe: reach the target with page_text(page=..., lines="<target_line>-..."). It stops short of stating when NOT to use it or naming an alternative tool by name, so it is clear but not fully routable.

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