Skip to main content
Glama

misakanet_preflight

Read-onlyIdempotent

[GUARD / RISK CHECK] Check risk level before executing high-risk operations. Matches agent intent against lesson triggers to provide proactive warnings. Use before RAG builds, WSL/GPU tasks, bulk imports, or any operation that might fail. No side effects — safe to call multiple times before acting. Requires a Bearer token (misakanet_register first, and pass the same client_id to keep your node): an anonymous call is refused with JSON-RPC -32000 Unauthorized plus a recovery hint, which this sentence exists to keep you from discovering the hard way. Returns: object {risk_level: 'low'|'medium'|'high', intent, matched_lessons: [{id, title, domain, relevance}], guards: [string]}. Example: misakanet_preflight(intent='build RAG pipeline with ChromaDB')

Input Schema

NameRequiredDescriptionDefault
intentYesRequired: what you plan to do (e.g. 'build RAG pipeline with ChromaDB').
contextNoOptional: additional context about the environment or setup.

Output Schema

NameRequiredDescriptionDefault
errorNo
guardsNo
intentNo
risk_levelNo
matched_lessonsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "error": {
      +      "type": "string"
      +    },
      +    "guards": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "intent": {
      +      "type": "string"
      +    },
      +    "matched_lessons": {
      +      "items": {
      +        "properties": {
      +          "domain": {
      +            "type": "string"
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "relevance": {
      +            "type": "number"
      +          },
      +          "title": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "risk_level": {
      +      "enum": [
      +        "low",
      +        "medium",
      +        "high"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is largely covered; the description's 'no side effects — safe to call multiple times' restates them. Genuine added context is the auth requirement: anonymous calls are refused with JSON-RPC -32000 Unauthorized plus a recovery hint. However, it discloses nothing about cost, latency, or behavior when no lesson matches the intent — a meaningful gap for a guard tool that gates other operations.

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?

Front-loaded with the bracket tag, then when-to-use, then safety, then auth, then return shape — a logical order. It is slightly padded: the parenthetical aside 'which this sentence exists to keep you from discovering the hard way' is self-referential filler and the Returns line duplicates the output schema.

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

Completeness5/5

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

For a two-parameter, output-schema-backed guard tool, the description covers purpose, triggering conditions, idempotency, the authentication prerequisite and its failure mode, and even sketches the return shape. There is essentially nothing an agent needs in order to call it correctly that is missing.

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?

Schema coverage is 100%, including the required-intent description, so the baseline is 3. The description earns an extra point by explaining what intent means functionally — the agent's planned action, matched against lesson triggers — and supplying a concrete example call (intent='build RAG pipeline with ChromaDB') that demonstrates the expected specificity level.

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?

The description gives a specific verb and resource — 'Check risk level' as a preflight gate that 'Matches agent intent against lesson triggers' — and leads with a bracketed tag '[GUARD / RISK CHECK]' that separates it from the storage/search siblings (misakanet_search, misakanet_get_lesson, misakanet_write_lesson). An agent can tell immediately that this is a pre-action safety check rather than a data retrieval tool.

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

Usage Guidelines5/5

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

It provides explicit trigger contexts ('before RAG builds, WSL/GPU tasks, bulk imports, or any operation that might fail') and explicitly permits repeated calls ('safe to call multiple times before acting'). It also names the prerequisite path — call misakanet_register first and pass the same client_id — which is the alternative-action guidance an agent needs before invoking.

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