Skip to main content
Glama

Get Package API

get_package_api
Read-onlyIdempotent

Fetch a ZK-Kit package's main entry file to inspect its public API surface across TypeScript, Rust, Solidity, Circom, or Noir without browsing the full source tree.

Instructions

Fetch the main entry/export file for a ZK-Kit package. Returns the primary API surface: src/index.ts for TypeScript, src/lib.rs for Rust, the main contract for Solidity, the main circuit for Circom/Noir. Use this to quickly understand a package's public API without browsing the full source tree.

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

Input Schema

NameRequiredDescriptionDefault
nameYesPackage name (e.g., '@zk-kit/lean-imt', 'lean-imt')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent and openWorld, so safety and side-effect disclosure is pre-covered. The description adds real value by saying what content comes back per language, but says nothing about return format (raw source text vs parsed), behavior for packages with no main entry, or name-resolution rules for scoped vs unscoped names.

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 action and the concrete per-language mapping, with no filler. The final sentence is slightly redundant with the purpose statement but earns its place as usage guidance.

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?

With no output schema, the description does the heavy lifting by enumerating the exact file returned per language, which is enough to call and interpret the result. It could say more about the returned content type and edge cases, but nothing essential is missing.

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

Parameters3/5

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

The single `name` parameter is fully documented in the schema, including scoped and unscoped examples, so the baseline applies. The description only restates that the package is ZK-Kit-related and adds no resolution or formatting semantics beyond the schema.

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 ("Fetch") and resource ("main entry/export file for a ZK-Kit package"), then enumerates exactly which file that means per language (src/index.ts, src/lib.rs, main contract, main circuit). This lets an agent distinguish it from broad source-listing siblings like get_package_source without opening either schema.

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 this to quickly understand a package's public API without browsing the full source tree" gives a clear selection criterion and implicitly rules out the full-source alternative. It stops short of naming a sibling or stating when-not to use it (e.g., when you need internal modules).

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