Skip to main content
Glama

Priority — TypeScript Compiler Intelligence

Get Importers

get_importers
Read-onlyIdempotent

Return supplied files that statically import one target file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesNo
limitNo
offsetNo
symbolYes
compactNo
snapshotNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes
queryYes
totalYes
limitsYes
schemaYes
symbolNo
analyzerYes
coverageYes
returnedYes
snapshotYes
truncatedYes
next_offsetYes
total_foundYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed23 schema fields changed
    • addedInput schema / oneOf
      Added value: +[
      +  {
      +    "required": [
      +      "files"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "snapshot"
      +    ]
      +  }
      +]
    • removedInput schema / properties / compact / description
      Removed value: -"Prefer a token-efficient packet when this tool has a proven compact representation. Defaults to true for specialized agent tools; set false only when full verbose evidence fields are required."
    • removedInput schema / properties / files / description
      Removed value: -"Authorized JavaScript/TypeScript source files for this single request. Required every call — there is no server-side index."
    • removedInput schema / properties / files / items / properties / content / description
      Removed value: -"Full source text for that path. Only files included here are analyzed; the server does not read a repository from disk."
    • removedInput schema / properties / files / items / properties / path / description
      Removed value: -"Workspace-relative JS/TS path for this request (e.g. \"src/app.ts\"). No absolute paths, no \"..\" segments, no backslashes."
    • removedInput schema / properties / limit / description
      Removed value: -"Maximum number of items to return in this page (1–100). Prefer smaller pages when scanning large result sets."
    • removedInput schema / properties / offset / description
      Removed value: -"0-based pagination offset into the result items array. Use with limit and next_offset from the previous response."
    • addedInput schema / properties / snapshot
      Added value: +{
      +  "maxLength": 100,
      +  "minLength": 20,
      +  "type": "string"
      +}
    • removedInput schema / properties / symbol / description
      Removed value: -"Exact symbol name (e.g. \"addItem\") or a prior exact compiler symbol id from a symbols listing. Use the id when names collide across files."
    • changedInput schema / required
      Previous value: -[
      -  "files",
      -  "symbol"
      -]New value: +[
      +  "symbol"
      +]
    • removedOutput schema / properties / analyzer / description
      Removed value: -"Analyzer identity including TypeScript version"
    • removedOutput schema / properties / coverage / description
      Removed value: -"Coverage and completeness markers for this analysis"
    • removedOutput schema / properties / items / description
      Removed value: -"Paged compiler facts for this query"
    • removedOutput schema / properties / limits / description
      Removed value: -"Human-readable analysis boundary statements"
    • removedOutput schema / properties / next_offset / description
      Removed value: -"Offset for the next page, or null when complete"
    • removedOutput schema / properties / query / description
      Removed value: -"Query mode that produced this packet"
    • removedOutput schema / properties / returned / description
      Removed value: -"Number of items in this page"
    • removedOutput schema / properties / schema / description
      Removed value: -"Packet schema id, e.g. semantic-reader/0.1"
    • removedOutput schema / properties / snapshot / description
      Removed value: -"Hash of the supplied file set for this request"
    • removedOutput schema / properties / symbol / description
      Removed value: -"Resolved target symbol summary when applicable"
    • removedOutput schema / properties / total / description
      Removed value: -"Total matching items before pagination caps in this response path"
    • removedOutput schema / properties / total_found / description
      Removed value: -"Total found before page slice"
    • removedOutput schema / properties / truncated / description
      Removed value: -"True when result caps truncated the set (fail-closed incomplete, not absence proof)"
  2. Changed1 schema field changed
    • addedInput schema / properties / compact
      Added value: +{
      +  "default": true,
      +  "description": "Prefer a token-efficient packet when this tool has a proven compact representation. Defaults to true for specialized agent tools; set false only when full verbose evidence fields are required.",
      +  "type": "boolean"
      +}
  3. Changed8 schema fields changed
    • addedInput schema / properties / files / description
      Added value: +"Authorized JavaScript/TypeScript source files for this single request. Required every call — there is no server-side index."
    • addedInput schema / properties / files / items / properties / content / description
      Added value: +"Full source text for that path. Only files included here are analyzed; the server does not read a repository from disk."
    • addedInput schema / properties / files / items / properties / path / description
      Added value: +"Workspace-relative JS/TS path for this request (e.g. \"src/app.ts\"). No absolute paths, no \"..\" segments, no backslashes."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of items to return in this page (1–100). Prefer smaller pages when scanning large result sets."
    • addedInput schema / properties / offset / description
      Added value: +"0-based pagination offset into the result items array. Use with limit and next_offset from the previous response."
    • addedInput schema / properties / symbol / description
      Added value: +"Exact symbol name (e.g. \"addItem\") or a prior exact compiler symbol id from a symbols listing. Use the id when names collide across files."
    • changedInput schema / required
      Previous value: -[
      -  "files"
      -]New value: +[
      +  "files",
      +  "symbol"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "analyzer": {
      +      "description": "Analyzer identity including TypeScript version",
      +      "type": "string"
      +    },
      +    "coverage": {
      +      "additionalProperties": {},
      +      "description": "Coverage and completeness markers for this analysis",
      +      "type": "object"
      +    },
      +    "items": {
      +      "description": "Paged compiler facts for this query",
      +      "items": {
      +        "additionalProperties": {},
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "limits": {
      +      "description": "Human-readable analysis boundary statements",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "next_offset": {
      +      "description": "Offset for the next page, or null when complete",
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "query": {
      +      "description": "Query mode that produced this packet",
      +      "type": "string"
      +    },
      +    "returned": {
      +      "description": "Number of items in this page",
      +      "type": "number"
      +    },
      +    "schema": {
      +      "description": "Packet schema id, e.g. semantic-reader/0.1",
      +      "type": "string"
      +    },
      +    "snapshot": {
      +      "description": "Hash of the supplied file set for this request",
      +      "type": "string"
      +    },
      +    "symbol": {
      +      "description": "Resolved target symbol summary when applicable"
      +    },
      +    "total": {
      +      "description": "Total matching items before pagination caps in this response path",
      +      "type": "number"
      +    },
      +    "total_found": {
      +      "description": "Total found before page slice",
      +      "type": "number"
      +    },
      +    "truncated": {
      +      "description": "True when result caps truncated the set (fail-closed incomplete, not absence proof)",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "schema",
      +    "analyzer",
      +    "snapshot",
      +    "query",
      +    "items",
      +    "total",
      +    "total_found",
      +    "returned",
      +    "truncated",
      +    "next_offset",
      +    "coverage",
      +    "limits"
      +  ],
      +  "type": "object"
      +}
  4. First observed

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, covering the safety profile. The description adds no additional behavioral context such as pagination behavior, limits, or the meaning of 'snapshot' vs 'files'. With annotations covering safety, the description adds minimal extra value.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with no unnecessary words. It is appropriately front-loaded, stating the core function immediately.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has 6 parameters, a oneOf constraint, and an output schema, yet the description explains none of these. It does not clarify the difference between 'files' and 'snapshot' inputs, how pagination works, or what the output format is. Given the complexity, the description is severely under-specified.

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

Parameters1/5

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

Schema description coverage is 0% and the description does not explain any of the 6 parameters. It does not clarify the roles of 'files', 'snapshot', 'symbol', 'limit', 'offset', or 'compact'. The description's mention of 'supplied files' and 'target file' vaguely maps to 'files' and 'symbol', but this is insufficient given the oneOf requirement and pagination parameters.

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 ('Return') and resource ('supplied files') with a clear condition ('statically import one target file'). It distinguishes from siblings like find_references by focusing on file-to-file import relationships. However, the required parameter is named 'symbol' while the description refers to a 'target file', creating ambiguity about whether 'symbol' is a file path or a code symbol.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives like get_imports or find_references. The description does not mention any exclusions, prerequisites, or typical scenarios. The agent is left to infer usage from the name and description.

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