Skip to main content
Glama

Look Up API

lookup_api
Read-onlyIdempotent

Look up the kernelCAD script API by symbol, plain-language query, and/or section. Plain-language matches are ranked across sections. Results contain exact runtime signatures. All matching entries are returned by default; set limit and offset only when you want pages. Omit query and section for the compact API index and section counts. Use query to request full descriptions of matching entries. intent is telemetry, not a search query. Lookup responses include kernelSource: the exact kernel package version/revision, composed runtime source hash, and version-pinned public authoring/API references.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lookup_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoOptional entries per page; omit to return every match.
queryNoAPI symbol or plain-language terms; matching entries retain full descriptions.
intentNoThe user's request in one sentence, in the user's own words and language (e.g. 'M4 bracket for a 25 mm tube, print on Bambu A1'). Helps kernelCAD improve; leave out personal data.
offsetNoContinue from next_offset with the same query and section.
sectionNoRestrict results to one section from the returned section index.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / properties / limit / default
      Removed value: -12
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum entries across all sections in this page."New value: +"Optional entries per page; omit to return every match."
    • removedInput schema / properties / limit / maximum
      Removed value: -40
    • changedInput schema / properties / query / description
      Previous value: -"API symbol or keywords; matching entries retain their full descriptions."New value: +"API symbol or plain-language terms; matching entries retain full descriptions."
    • removedInput schema / properties / query / maxLength
      Removed value: -500
  2. Changed4 schema fields changed
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 12,
      +  "description": "Maximum entries across all sections in this page.",
      +  "maximum": 40,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "description": "Continue from next_offset with the same query and section.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / query
      Added value: +{
      +  "description": "API symbol or keywords; matching entries retain their full descriptions.",
      +  "maxLength": 500,
      +  "type": "string"
      +}
    • addedInput schema / properties / section
      Added value: +{
      +  "description": "Restrict results to one section from the returned section index.",
      +  "enum": [
      +    "globals",
      +    "shapeMethods",
      +    "shapeListMethods",
      +    "sketchMethods",
      +    "pathBuilderMethods",
      +    "paramRefMethods",
      +    "sceneMethods",
      +    "scenePartProperties",
      +    "surfaceMethods",
      +    "curve3dMethods",
      +    "curve3dAnalyticsMethods",
      +    "edgeQueryKeys",
      +    "faceQueryKeys",
      +    "featureKindFaceLabels",
      +    "constraints"
      +  ],
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • removedOutput schema / properties
      Removed value: -{
      -  "constraints": {
      -    "additionalProperties": true,
      -    "type": "object"
      -  },
      -  "curve3dAnalyticsMethods": {
      -    "items": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "curve3dMethods": {
      -    "items": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "edgeQueryKeys": {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "error": {
      -    "type": "string"
      -  },
      -  "faceQueryKeys": {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "featureKindFaceLabels": {
      -    "additionalProperties": true,
      -    "type": "object"
      -  },
      -  "globals": {
      -    "items": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "ok": {
      -    "type": "boolean"
      -  },
      -  "paramRefMethods": {
      -    "items": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "pathBuilderMethods": {
      -    "items": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "sceneMethods": {
      -    "items": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "scenePartProperties": {
      -    "items": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "shapeListMethods": {
      -    "items": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "shapeMethods": {
      -    "items": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "sketchMethods": {
      -    "items": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "surfaceMethods": {
      -    "items": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "type": "array"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "ok"
      -]
  4. Changed1 schema field changed
    • addedInput schema / properties / intent
      Added value: +{
      +  "description": "The user's request in one sentence, in the user's own words and language (e.g. 'M4 bracket for a 25 mm tube, print on Bambu A1'). Helps kernelCAD improve; leave out personal data.",
      +  "maxLength": 2000,
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • addedOutput schema / properties / shapeListMethods
      Added value: +{
      +  "items": {
      +    "additionalProperties": true,
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  6. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "constraints": {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    "curve3dAnalyticsMethods": {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "curve3dMethods": {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "edgeQueryKeys": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "error": {
      +      "type": "string"
      +    },
      +    "faceQueryKeys": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "featureKindFaceLabels": {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    "globals": {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "ok": {
      +      "type": "boolean"
      +    },
      +    "paramRefMethods": {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "pathBuilderMethods": {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "sceneMethods": {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "scenePartProperties": {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "shapeMethods": {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "sketchMethods": {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "surfaceMethods": {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  7. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real value beyond that: matches are ranked across sections, entries carry exact runtime signatures, all matches return by default, and responses include kernelSource version provenance. However, with an output schema present, much of the return-shape detail is partly redundant.

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?

Front-loaded with purpose, then mode behavior, then the telemetry caveat, then provenance — a logical order with no filler. The kernelSource sentence is dense but every clause carries distinct information.

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 five-parameter, all-optional documentation lookup with a full schema and output schema, this covers modes, defaults, ranking, and paging behavior adequately. The only meaningful gap is guidance on when to prefer the sibling lookup tools over this one.

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 the baseline would be 3, but the description adds meaning the schema does not: it clarifies that 'intent' is telemetry and explicitly not a search query, and that limit/offset are paging controls to use only when paging. It also explains that query results retain full descriptions and that offset continues from next_offset.

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?

States a specific verb ('look up') and resource ('the kernelCAD script API') along with the three lookup modes (symbol, plain-language query, section). The resource names it apart from siblings like lookup_cookbook or lookup_diagnostics, though it never explicitly contrasts with the generic 'query' sibling.

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?

Clear mode-selection guidance: omit query and section for the compact index, use query for full descriptions, set limit/offset only for paging. It also warns that intent is telemetry rather than a search field. What's missing is explicit routing to the sibling lookup tools for non-API content.

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.