Skip to main content
Glama

Graph Paper

Look up a library function

lookup
Read-only

Needs sign-in: Search the math library and the notebook drawing functions before you use a function you are not sure of, or claim that one exists. Pass one to three keywords (e.g. "nth prime", "heat map"), or a LaTeX trigger (e.g. "\gcd"); give synonyms as separate words. Each match has a name and an id: in a code cell (Epsil), call it by its name; in LaTeX, by its id. Follow the signature's argument order. A match with notebookOnly works only in a notebook code cell. Trust the result: if nothing evaluable matches, the function is NOT available — say so rather than inventing one.

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": "lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesOne to three keywords, synonyms as separate words, or a LaTeX trigger.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations cover read-only and closed-world, and the description adds substantial context beyond them: a sign-in requirement, how to consume results (call by `name` in code cells, `id` in LaTeX), the `notebookOnly` restriction, and that an empty result is authoritative. This tells the agent how to interpret and act on the output, not just that it is a safe read.

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?

Dense but front-loaded with the auth note and the core instruction, then result interpretation. Nearly every sentence carries operational value. It is on the long side for one parameter, but the length is justified by the return-value and usage rules it conveys.

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?

With only one parameter, no output schema, and light annotations, the description carries the burden well: auth, query form, result fields, cell-vs-LaTeX invocation, the notebookOnly caveat, and negative-result semantics. Nothing an agent needs to call this correctly and interpret it is missing.

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 baseline is 3, but the description adds real meaning: one to three keywords, synonyms as separate words, and concrete examples ('nth prime', 'heat map', '\gcd'). That makes the input format actionable in a way the schema alone does not.

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 gives a specific verb and resource: search the math library and notebook drawing functions by keyword or LaTeX trigger. It is clearly a search tool for functions, which separates it from mutation/document siblings. It stops short of naming a sibling like lookup_help, so the boundary with help-oriented tools is left implicit.

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?

Explicit when-to-use: before using a function you are unsure of, or before claiming one exists. It also gives the invocation forms (keywords vs LaTeX trigger). There is no when-not guidance and no named alternative, so it falls 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources