Skip to main content
Glama

search_project

Read-only

Search editable documents in a ShareLaTeX project by case-insensitive query, returning file paths, line numbers, and snippets; filter paths with glob patterns and control result count/context.

Instructions

Search editable documents in one ShareLaTeX project.

Read-only. project is a project name or id. The match is
case-insensitive. Each hit is path, line number, and a short snippet.
file_pattern filters project paths using glob syntax. max_results is
1..200 (default 30); context_lines is 0..10. Uploaded files are skipped.

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

Input Schema

NameRequiredDescriptionDefault
queryYes
projectYes
max_resultsNo
file_patternNo*
context_linesNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered ("Read-only" in the text is largely redundant with that). Beyond annotations, the description adds genuinely useful behavior: case-insensitive matching, the exclusion of uploaded files, and the shape of each hit (path, line number, snippet).

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?

Purpose is front-loaded in the first sentence, followed by one-line facts per parameter. No filler sentences, and the range/default details are packed compactly rather than narrated.

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?

Five parameters with zero schema descriptions and a mutation-free search semantics are fully documented here, and an output schema exists so return values need no further explanation. The description nonetheless sketches the hit shape, which is enough for an agent to invoke and interpret results correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry parameter meaning, and it does: project accepts a name or id, file_pattern uses glob syntax, max_results is bounded 1..200 with default 30, and context_lines is bounded 0..10. Matching semantics for query (case-insensitive) are also supplied, leaving no parameter opaque.

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 ("Search editable documents") plus scope ("in one ShareLaTeX project"), and the "editable documents" qualifier separates it from the read/list/append siblings without needing their schemas.

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?

Gives clear context for when this tool applies by bounding it to editable documents and explicitly noting uploaded files are skipped, so the agent knows what this tool will not find. It does not name an alternative sibling for reading a specific known file, which keeps it short of a 5.

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