Skip to main content
Glama

spurvik_find_unwrapped_calls

Read-onlyIdempotent

Heuristic static scan of one directory inside the workspace root for AI client calls that are not passed through withSpurvik, spurvikMiddleware, withSpurvikMastra, withSpurvikModel, withSpurvikModelProvider, withSpurvikLangGraph, or spurvikInterrupt. A StateGraph constructor is reported when the file does not call withSpurvikLangGraph. A bare interrupt() call is reported when the file does not call spurvikInterrupt or resolveLangGraphInterrupts. The scan reads .ts, .tsx, .js, .jsx, .mjs, .cjs, .mts, and .cts files. It does not read .md or .mdc files. Results are file:line. The line number is 1-based and counts every newline, including comments and strings. This is a heuristic, so it can miss a call or report one that is already wrapped. The scan does not change files and does not use the network. Paths that leave the workspace, including '..', are rejected. The scanner skips files named .env or .env.* (any case), including through symlinks and hard links. Over HTTP there is no workspace directory. Pass code (a string, max 128 KB) or files (an array of { path, content }). If neither is passed, this tool explains that, and how to run the local stdio MCP server or /spurvik:check for a directory scan.

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

Input Schema

NameRequiredDescriptionDefault
codeNoInline TypeScript, JavaScript, Python, PHP, C#/.NET, Go, or Java/Kotlin source code (up to 128 KB) to inspect for unwrapped LLM SDK calls.
filesNoArray of project source files ({ path, content }) across .ts/.js, .py, .php, .cs, .go, or .java/.kt to inspect in memory for unwrapped OpenAI, Anthropic, Gemini, Vercel AI SDK, LangChain, Laravel, .NET, Go, or Spring AI calls.
domainNoOptional public website or app domain (for example, personio.de) to prefill CI guide and EU Console signup links.
localeNoOptional EU language code (for example, de, fr, nl, da, sv, es, it) for localized CI guide and Console signup links.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / code / description
      Previous value: -"Inline TypeScript, JavaScript, or Python source code (up to 128 KB) to inspect for unwrapped LLM SDK calls."New value: +"Inline TypeScript, JavaScript, Python, PHP, C#/.NET, Go, or Java/Kotlin source code (up to 128 KB) to inspect for unwrapped LLM SDK calls."
    • changedInput schema / properties / files / description
      Previous value: -"Array of project source files ({ path, content }) to inspect in memory for unwrapped OpenAI, Anthropic, Gemini, Vercel AI SDK, or LangChain calls."New value: +"Array of project source files ({ path, content }) across .ts/.js, .py, .php, .cs, .go, or .java/.kt to inspect in memory for unwrapped OpenAI, Anthropic, Gemini, Vercel AI SDK, LangChain, Laravel, .NET, Go, or Spring AI calls."
  2. Changed2 schema fields changed
    • addedInput schema / properties / domain
      Added value: +{
      +  "description": "Optional public website or app domain (for example, personio.de) to prefill CI guide and EU Console signup links.",
      +  "maxLength": 2048,
      +  "type": "string"
      +}
    • addedInput schema / properties / locale
      Added value: +{
      +  "description": "Optional EU language code (for example, de, fr, nl, da, sv, es, it) for localized CI guide and Console signup links.",
      +  "enum": [
      +    "en",
      +    "da",
      +    "de",
      +    "fr",
      +    "es",
      +    "nl",
      +    "sv",
      +    "pl",
      +    "it",
      +    "pt",
      +    "fi",
      +    "cs",
      +    "bg",
      +    "el",
      +    "et",
      +    "ga",
      +    "hr",
      +    "hu",
      +    "lt",
      +    "lv",
      +    "mt",
      +    "ro",
      +    "sk",
      +    "sl"
      +  ],
      +  "type": "string"
      +}
  3. Changed4 schema fields changed
    • addedInput schema / properties / code / description
      Added value: +"Inline TypeScript, JavaScript, or Python source code (up to 128 KB) to inspect for unwrapped LLM SDK calls."
    • addedInput schema / properties / files / description
      Added value: +"Array of project source files ({ path, content }) to inspect in memory for unwrapped OpenAI, Anthropic, Gemini, Vercel AI SDK, or LangChain calls."
    • addedInput schema / properties / files / items / properties / content / description
      Added value: +"UTF-8 source text of the file (inspected in memory only, never persisted)."
    • addedInput schema / properties / files / items / properties / path / description
      Added value: +"Relative file path (for example, src/chat.ts or app/main.py)."
  4. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, no network, idempotent, and non-destructive, and the description adds meaningful behavior beyond that: the heuristic can both miss and false-positive, line numbers are 1-based counting all newlines, paths escaping the workspace are rejected, .env files are skipped, and the scan never mutates files. The one weak point is the muddled directory-vs-HTTP framing, which leaves the actual read source ambiguous.

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

Conciseness3/5

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

It is a single dense paragraph that front-loads the purpose but buries the crucial HTTP-vs-stdio mode distinction near the end. Most sentences carry information, but the wall-of-text format and repeated extension lists make it harder to scan than it needs to be.

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

Completeness3/5

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

For a complex heuristic scanner with no output schema, it covers a lot: detection rules, extensions, exclusions, line numbering, false positives, path rejection, and fallback behavior. However, it lists only .ts/.tsx/.js/.jsx/.mjs/.cjs/.mts/.cts for the directory scan while the schema says code and files support Python, PHP, C#/.NET, Go, and Java/Kotlin, leaving a real gap about supported languages.

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?

Schema description coverage is 100%, so the schema already documents code, files, domain, and locale in detail. The description adds the 128 KB limit and confirms code or files are alternatives, but never mentions domain or locale, so it adds little beyond the structured schema.

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 verb and resource are specific: a heuristic static scan for AI client calls not wrapped by withSpurvik, spurvikMiddleware, and related helpers. It also enumerates the detection rules (StateGraph without withSpurvikLangGraph, bare interrupt() without spurvikInterrupt). However, the opening 'scan of one directory inside the workspace root' does not match the actual parameters (code, files, domain, locale), and no sibling is named for contrast.

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 gives clear context for when to use it: inspecting source for unwrapped LLM SDK calls, with an explicit fallback telling the agent what happens if neither code nor files is passed. It does not explicitly contrast with siblings such as spurvik_scan_live_url or spurvik_batch_scan_domains, so the alternative-selection guidance is incomplete.

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.