Skip to main content
Glama

lookup_api

Look up Blender Python API names, properties, operators, and modules in your running Blender so bpy code matches the installed version before you write it.

Instructions

Look up the Blender Python API in the user's running Blender, so names match their version. Use it before writing bpy code you are unsure of.

    ``query`` is either an identifier or search words:
    - a type: ``Scene``, ``bpy.types.RenderSettings`` (properties with types,
      defaults, enum identifiers; node types also list their input/output sockets,
      e.g. ``ShaderNodeBsdfPrincipled``)
    - a member: ``bpy.types.RenderSettings.engine``, ``Object.modifiers``
    - an operator: ``bpy.ops.mesh.primitive_cube_add`` (its arguments)
    - a Python module or function: ``mathutils.Vector``, ``bmesh.ops.bevel``
    - words: ``bevel modifier width`` (matching types, properties and operators)
    

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_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.5.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the whole burden. It does disclose a meaningful behavioral trait — lookups are resolved against the running Blender, so results are version-accurate — but it says nothing about failure behavior (unknown identifier, ambiguous word query), result volume, or whether the lookup has any side effects. An output schema exists, so return shape needn't be explained, which keeps this at an adequate rather than poor level.

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?

The definition is front-loaded: purpose and usage in the first two sentences, then a structured bullet list of query forms. Every example illustrates a different accepted shape, so little is wasted, though the repeated parenthetical examples make it longer than strictly necessary.

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 single-parameter, read-only lookup with an output schema, the description covers what it does, when to call it, and exactly what to pass. Only minor gaps remain: behavior on no-match or ambiguous queries, and whether results are truncated.

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% and the single parameter is a bare string, so the description must supply all meaning — and it does, enumerating five distinct query forms (type, member, operator, module/function, free words) with concrete examples for each. This fully compensates for the empty schema and makes the accepted input format unambiguous.

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?

The description names a specific verb and resource ('Look up the Blender Python API in the user's running Blender') and adds scope that separates it from siblings: results come from the live Blender instance, so names match the user's version. That distinguishes it clearly from execute_blender_code, get_guide and get_object_info 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?

'Use it before writing bpy code you are unsure of' gives an explicit trigger condition tied to the agent's own uncertainty, which is actionable. It does not name an alternative tool or state when not to bother, so it stops short of full routing guidance.

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