Skip to main content
Glama

Search pdf texts

search_pdf_texts
Read-only

Find the pages of articles read with formulas (read_pdf_text) that hold every word asked — a name, a term, a fragment of TeX such as '\pi_{n+k}'. Each hit: the file's id and name, its wiki page, the page of the PDF and a snippet. Only files on pages you may read. For the project's issues, pages and other files use find_issues / search_wiki.

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

Input Schema

NameRequiredDescriptionDefault
limitNoHow many pages, at most 30. Default 10.
queryYesWords to find, all of them.
projectNoProject key. Optional.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare the safe read profile; the description adds real behavioral context — conjunction matching (every word must appear), permission-scoped results ('Only files on pages you may read'), and the exact shape of a hit (file id/name, wiki page, PDF page, snippet). It omits ranking/ordering behavior, which keeps it short of a 5.

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?

Four tight sentences, front-loaded with what is searched and what each hit returns, then the permission caveat, then sibling routing. Minor awkwardness in 'the pages of articles read with formulas (read_pdf_text)' but nothing is wasted.

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?

For a three-parameter search with no output schema, the description covers the corpus, matching semantics, result fields, and access constraints — everything an agent needs to decide to call it and interpret the response. The absence of an output schema is compensated by the inline hit description.

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 schema already documents query, limit and project. The description adds meaning to query by defining AND semantics and allowing TeX fragments, but says nothing extra about limit or project scoping beyond what the schema states — 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?

States a specific verb and resource — finding PDF pages that contain all the queried words — and ties the corpus explicitly to articles previously processed by read_pdf_text. The TeX-fragment example ('\pi_{n+k}') and the per-hit fields make the scope unambiguous, and it distinguishes itself from sibling search tools.

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?

Clearly implies the corpus is limited to PDFs already ingested via read_pdf_text, and routes other content types to find_issues / search_wiki. It does not spell out a negative case (e.g. use read_pdf_text when you want full page text rather than matching), but the alternative routing is explicit enough.

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