Skip to main content
Glama

Vet an MCP server through the full WARDEN gate chain

vet_mcp_server
Read-onlyIdempotent

Vets an MCP server identity and its advertised tools through ordered gates, returning a recordable allow/block verdict, score, findings, and allowed/blocked tool lists.

Instructions

Run WARDEN's ordered gate chain (static-scan → threat-feed → origin → pinning) over a server identity plus its advertised tools/list payload and return a recordable verdict (allow/block, 0..1 product score, findings, allowedTools/blockedTools, ruleset digest).

When to use: you have a complete server record and want the same decision a host should make before any of those tool definitions reach the model. Prefer this over calling the four gates yourself.

When NOT to use: inspecting descriptions only (call static_scan_tools — no origin/pinning); splitting tools by operator glob (classify_sensitive_tools); checking one outbound URL (check_egress_url); producing RFC 8785 bytes (canonicalize_json).

Behaviour: local, deterministic, no network. This stdio process uses the built-in 11-record threat floor (it does not fetch a signed feed) and a durable local pin store. First contact is TOOL_DEF_UNPINNED/advisory until explicitly approved. Origin defaults to allowUnknownServers=true so catalog-discovered servers are not fail-closed. Override policy when you need the host's real knobs. Does not connect to, start, or approve the target server.

Returns structured JSON matching outputSchema. Example: vet_mcp_server({ server: { id: "demo@0", name: "demo", transport: "stdio", command: "npx" }, tools: [{ name: "add", description: "Add two integers.", inputSchema: { type: "object" } }] }).

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": {
      "server": "<server>",
      "tools": "<tools>"
    },
    "name": "vet_mcp_server"
  }
}

Input Schema

NameRequiredDescriptionDefault
toolsYesExact tools/list payload (1..256 tools). Each item is name + description + inputSchema from the server. Do not filter before vetting — blockedTools is the partition.
policyNoOptional WardenPolicy overlay. Omitted keys keep the stdio defaults: blockAtSeverity=high, empty sensitiveToolPatterns, allowUnknownServers=true, pinToolDefs=true. Use classify_sensitive_tools when you only want the glob split.
serverYesIdentity of the MCP server being vetted — the host's McpServerRef, not a live connection. WARDEN never launches this command or fetches this URL.

Output Schema

NameRequiredDescriptionDefault
allowYesfalse when a gate was fatal or a non-advisory finding reached blockAtSeverity.
scoreYesProduct of per-gate scores in [0, 1]. One bad gate drags the whole server down; it is not an average.
findingsYesAccumulated findings across all gates, including advisory.
rulesetsYesRule-table identity in force for this verdict. Store this with the scan.
decidedByNoGate that produced the blocking decision, present only when allow is false.
allowedToolsYesTool names individually permitted; the host MUST also require allow=true before exposure.
blockedToolsYesTool names quarantined; the rest of the server may still be usable.
blockAtSeverityYesPolicy threshold this verdict was decided under: non-advisory findings at or above it block. Store it with the scan beside rulesets.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.31.0
    • addedOutput schema / properties / blockAtSeverity
      Added value: +{
      +  "description": "Policy threshold this verdict was decided under: non-advisory findings at or above it block. Store it with the scan beside rulesets.",
      +  "enum": [
      +    "info",
      +    "low",
      +    "medium",
      +    "high",
      +    "critical"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "allow",
      -  "score",
      -  "findings",
      -  "allowedTools",
      -  "blockedTools",
      -  "rulesets"
      -]New value: +[
      +  "allow",
      +  "score",
      +  "findings",
      +  "allowedTools",
      +  "blockedTools",
      +  "rulesets",
      +  "blockAtSeverity"
      +]
  2. Changed1 schema field changedv0.24.0
    • changedOutput schema / properties / rulesets / properties / staticScan / properties / version / description
      Previous value: -"Monotonic static-scan ruleset version (currently \"12\")."New value: +"Monotonic static-scan ruleset version. Use list_scan_rules for the current version and digest."
  3. Changed9 schema fields changedv0.16.0
    • addedInput schema / properties / policy / properties / capabilityBindings
      Added value: +{
      +  "description": "Operator-reviewed capabilities, bound to launch identity and complete definitions. Unbound capabilities remain unknown.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "identityHash": {
      +        "type": "string"
      +      },
      +      "serverId": {
      +        "type": "string"
      +      },
      +      "tools": {
      +        "additionalProperties": {
      +          "items": {
      +            "enum": [
      +              "private",
      +              "untrusted",
      +              "outbound"
      +            ]
      +          },
      +          "type": "array"
      +        },
      +        "type": "object"
      +      },
      +      "toolsHash": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "serverId",
      +      "identityHash",
      +      "toolsHash",
      +      "tools"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 1000,
      +  "type": "array"
      +}
    • changedInput schema / properties / policy / properties / pinToolDefs / description
      Previous value: -"When true, tool-def drift after a stored pin is fatal. This process has an empty pin store, so first contact stays UNPINNED/advisory. Default true."New value: +"When true, tool-def drift after a stored pin is fatal. Pins persist across calls and restarts; first contact stays UNPINNED/advisory. Default true."
    • addedInput schema / properties / policy / properties / requireApproval
      Added value: +{
      +  "description": "Require an explicit operator approval of every advertised field and server identity. Automatic and legacy pins do not qualify. Default false.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / tools / items / additionalProperties
      Previous value: -falseNew value: +true
    • addedInput schema / properties / tools / items / properties / annotations
      Added value: +{
      +  "description": "Advertised hints; untrusted metadata, never authorization.",
      +  "type": "object"
      +}
    • addedInput schema / properties / tools / items / properties / outputSchema
      Added value: +{
      +  "description": "Unmodified output schema, including nested descriptions; scanned and pinned.",
      +  "type": "object"
      +}
    • addedInput schema / properties / tools / items / properties / title
      Added value: +{
      +  "description": "Unmodified advertised tool title; scanned and pinned.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / allowedTools / description
      Previous value: -"Tool names the host may expose to the model."New value: +"Tool names individually permitted; the host MUST also require allow=true before exposure."
    • changedOutput schema / properties / rulesets / properties / staticScan / properties / version / description
      Previous value: -"Monotonic static-scan ruleset version (currently \"4\")."New value: +"Monotonic static-scan ruleset version (currently \"12\")."
  4. First observedv1.0.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare read-only/idempotent/closed-world; the description goes far beyond by disclosing determinism and no network, the built-in 11-record threat floor instead of a signed feed, durable local pin store, first-contact UNPINNED/advisory semantics, and the allowUnknownServers=true default explained as a catalog-inspection convenience. It also explicitly states the tool does not connect to, start, or approve the target server, which is the key safety boundary an agent needs.

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?

Front-loaded one-sentence purpose, then labeled 'When to use', 'When NOT to use', 'Behaviour', and return/example sections. Every sentence carries operational content — defaults, pin semantics, exclusions — with no filler.

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 three-parameter tool with nested objects and an output schema, the description covers what matters and leaves return shape to the schema: policy defaults, pin persistence across calls/restarts, threat-floor limitation, and the no-launch/no-fetch guarantee. Nothing an agent needs to invoke it correctly 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 description coverage is 100%, so the baseline is 3; the description still adds value by summarizing the policy defaults as an overlay and telling the agent to override policy for the host's real knobs, plus a worked example invocation showing the required server and tools shape. Most parameter meaning already lives in the schema, so it stops short of a 5.

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?

States a specific verb (run the ordered gate chain) over a specific resource (server identity + advertised tools/list payload) and names the return artifact (allow/block verdict, 0..1 score, findings, allowed/blockedTools, ruleset digest). An agent can distinguish this from static_scan_tools or classify_sensitive_tools without opening any schema.

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?

Explicit 'When to use' (complete server record, host-decision parity before tool definitions reach the model) and an explicit 'Prefer this over calling the four gates yourself'. 'When NOT to use' routes to four named alternatives with the distinguishing condition for each (descriptions only, glob split, single URL, canonical bytes).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.