Skip to main content
Glama

checkCode

Read-only

Validate and lint TypeScript code snippet for MicroFn. Returns validation results and package extraction summary.

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": {
      "code": "<code>"
    },
    "name": "checkCode"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesTypeScript code to validate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered externally. The description adds genuine value by stating it returns validation results and a package extraction summary, but leaves unstated what a failed validation looks like, whether it executes any code, or how large a snippet it accepts.

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?

Two short sentences with the action front-loaded and no wasted wording. The trailing phrase 'package extraction summary' is a bit opaque—it hints at non-obvious behavior without explaining what packages are being extracted—so it is efficient but not maximally informative.

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 simple single-parameter read-only tool this is close to sufficient, and with no output schema the sentence about return values carries some weight. However, it does not explain failure behavior or the meaning of 'package extraction', which an agent would need to interpret results correctly.

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?

There is a single required parameter with 100% schema description coverage, so the schema already documents it fully. The description's 'TypeScript code snippet' phrase is consistent with the schema but adds no constraint, format, or length detail beyond it, which is the expected baseline for a one-parameter tool.

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 names a specific verb pair ('Validate and lint') and a specific resource ('TypeScript code snippet for MicroFn'), which an agent can distinguish from siblings like checkDeployment or executeFunction. It stops short of explicitly contrasting itself with any sibling, so it lands at 4 rather than 5.

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

Usage Guidelines3/5

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

Usage is only implied: the phrase 'for MicroFn' signals this is a pre-flight check on code destined for the platform, but the description never says when to call it (e.g., before updateFunctionCode or createFunction) or when not to. No alternatives or prerequisites are named.

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