Skip to main content
Glama

Find the code API types

search_api
Read-onlyIdempotent

Code Mode, step 1. Returns the TypeScript declaration of the sis data API for the methods that match your query (e.g. "fees", "visa income", "schools by city"), with the types they use and an example, so you load only what you need. Methods: sis.listings(), sis.listing(), sis.directory(), sis.categories(), sis.cities(), sis.visa(), sis.insurance(), sis.guide(), sis.searchSite(). Then write code against it and run it with execute. detail: "names" (one line per method), "signatures" (default), "full" (the whole declaration).

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

Input Schema

NameRequiredDescriptionDefault
queryNoWhat you want to do, in words or keywords. Omit for every method.
detailNosignatures

Output Schema

NameRequiredDescriptionDefault
noteNo
queryNo
typesNo
detailYes
methodsYes
examplesNo
all_methodsYes
declarationNoTypeScript declarations: the types, then `declare const sis`

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this to be a safe, read-only, idempotent lookup. The description adds useful behavior beyond that: it returns type declarations with related types and examples, supports three detail levels, and is designed to load only the needed API surface.

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 workflow purpose is front-loaded, and the detail-mode explanation is compact. The method list is long but directly useful for matching queries, and the description is otherwise dense without obvious filler.

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 rich annotations and an output schema, the description supplies what remains necessary: the Code Mode workflow, what the returned declarations contain, and how each detail level differs. It is complete enough for correct invocation, with only minor omissions such as explicit exclusions.

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?

The schema describes the query parameter, but the description adds meaningful semantics for the `detail` enum by explaining that `names` gives one line per method, `signatures` is the default, and `full` returns the whole declaration. This compensates well for the 50% schema description coverage.

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 states a specific verb and resource: it returns the TypeScript declaration of the `sis` data API for methods matching a query. The 'Code Mode, step 1' framing and the mention of writing code and running it with execute distinguish it from data-query siblings, though it does not explicitly name a sibling as an alternative.

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?

It clearly places the tool in a workflow: use it first to load type declarations, then write code against them and run it with execute. It does not state when not to use it or explicitly name alternatives, so it falls short of the top score.

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