Skip to main content
Glama

lookup_api

Read-onlyIdempotent

Look up a Pyxel or Cube API by name to retrieve signatures, documentation, and class members, or use partial names to find matching API names.

Instructions

Look up an installed Pyxel or Cube API by name, e.g. blt, Image.set, or cube.Vec3.lerp. Exact names return signatures, available documentation and class members. Partial names return up to 30 matching names.

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

Input Schema

NameRequiredDescriptionDefault
nameYes

Output Schema

NameRequiredDescriptionDefault
okYes
nameNo
errorsYes
matchesNo
membersNo
match_countNo
declarationsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.5.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, closed-world), so the description correctly spends its words on result-shaping behavior instead. It discloses the key differentiators: exact lookups return signatures, documentation and class members, while partial lookups are capped at 30 matches. It omits what happens on zero matches, which is a modest residual 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?

Three sentences, front-loaded with the verb and resource, with no filler. The exact-vs-partial behavior follows immediately so the agent can stop reading once it has what it needs. Slightly dense packing of two behaviors in one sentence, but nothing is wasted.

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 one-parameter lookup with an output schema, this covers the essential decision surface: what to pass and how the mode changes the answer. Return value detail is rightly left to the output schema rather than duplicated. A note on no-match behavior would close the remaining gap.

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 carries the full burden for the single `name` parameter, and it does: it explains that the value may be an exact identifier or a partial fragment, and demonstrates the dotted class-member syntax agents would otherwise have to guess. This is meaning well beyond a bare `minLength: 1` string.

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 (look up) and resource (an installed Pyxel or Cube API by name), and grounds it with three concrete example identifiers (blt, Image.set, cube.Vec3.lerp) that make the domain unambiguous. This clearly separates it from siblings like pyxel_info or run, which do not take an API member name.

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?

The description makes the two usage modes explicit: exact names for signatures/docs/class members, partial names for up to 30 matching names. That tells the agent which mode to pick for which goal. It stops short of naming an alternative tool or stating exclusions (e.g., when to prefer pyxel_info over this).

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