APIDeveloperTools

AgentFlight MCP Streamable Gateway

High-performance Agent Tool Ergonomics & Flight Recorder Model Context Protocol (MCP) server running on Vercel Serverless. Provides static tool-smell linting, token-budget compiling, policy enforcement, and flight recording. Supports Streamable HTTP and SSE over JSON-RPC 2.0.

Selected price
$0.001 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...
USE THIS API

AgentFlight MCP Streamable Gateway

Prepare your request, then continue with your agent.

Selected price

$0.001 / call

Provider
Pricing
Connect your agent
On this page

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters

No input fields are required by this API contract.

Sample response

"id": 2
"jsonrpc": "2.0"
result {}
tools [5]
[0] {}
"annotations": {
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": true
}
descriptionString · text preview
result.tools[0].description
Statically inspect MCP tool schema definitions against 10 ergonomics rules (TS001-TS010) and calculate an Agent Ergonomics Score.

### Purpose
Evaluates Model Context Protocol tool schemas for anti-patterns that confuse LLM tool-calling (tautological descriptions, missing required arrays, ambiguous parameter types, unconstrained inputs, and lack of usage boundaries). Produces an ergonomics score (0-100) and actionable remediation steps.

### When to use
- Auditing and validating MCP tool definitions during development or CI/CD pre-commit hooks.
- Benchmarking tool schema clarity and LLM tool selection readiness before deployment.

### When NOT to use
- Do NOT use to evaluate runtime agent trajectory recordings; use `agentflight_diff_cassettes` or `agentflight_verify_cassette` instead.

### Behavior & Side Effects
- Read-only: Operates purely in-memory; does not mutate any schemas or files.
- Deterministic: Analyzes schemas through static AST and JSON Schema inspection with zero external network calls.
"inputSchema": {
  "properties": {
    "tools": {
      "description": "List of MCP tool definition objects containing name, description, and inputSchema to be statically analyzed.",
      "items": {
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "tools"
  ],
  "type": "object"
}
"name": "agentflight_lint_tools"
"outputSchema": {
  "properties": {
    "passed": {
      "description": "True if score meets or exceeds the passing threshold (>= 80).",
      "type": "boolean"
    },
    "score": {
      "description": "Agent Ergonomics Score from 0 to 100.",
      "type": "number"
    },
    "violations": {
      "description": "List of detected tool smell violations across rules TS001 through TS010.",
      "items": {
        "properties": {
          "message": {
            "description": "Diagnosis and guidance on fixing the smell.",
            "type": "string"
          },
          "rule_id": {
            "description": "Ergonomics rule code (e.g. TS001).",
            "type": "string"
          },
          "severity": {
            "description": "Severity grade (error, warning, info).",
            "type": "string"
          },
          "tool_name": {
            "description": "Violating tool name.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "score",
    "passed",
    "violations"
  ],
  "type": "object"
}
[1] {}
"annotations": {
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": true
}
descriptionString · text preview
result.tools[1].description
Automatically refactor flawed MCP tool JSON schemas into hardened, Glama/AgentFlight Gold Standard definitions.

### Purpose
Applies deterministic remediation transformations via `ToolSchemaOptimizer` to fix `TS001`-`TS010` ergonomics smells, inferring parameter types, adding explicit constraints, marking required arrays, and upgrading descriptions with Purpose, When to use, and Behavior sections.

### When to use
- Automatically fixing low Agent Ergonomics Scores reported by `agentflight_lint_tools` before publishing an MCP server.
- Enforcing typed JSON schemas and bounded enums across legacy tool wrappers.

### When NOT to use
- Do NOT use when you only need a non-mutating lint audit without generating refactored schemas; use `agentflight_lint_tools` instead.

### Behavior & Side Effects
- Read-only: Transforms schemas purely in memory and returns hardened copies without modifying disk files.
- Deterministic & Idempotent: Running optimization multiple times converges cleanly.
"inputSchema": {
  "properties": {
    "compact": {
      "description": "Strip display-only schema metadata ('title', verbose boilerplate, nullable anyOf wrappers) to cut per-turn tokens.",
      "type": "boolean"
    },
    "tools": {
      "description": "Array of raw MCP tool schema objects containing name, description, and inputSchema.",
      "items": {
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "tools"
  ],
  "type": "object"
}
"name": "agentflight_optimize_tools"
"outputSchema": {
  "properties": {
    "hardened_tools": {
      "description": "Refactored MCP tool schemas conforming to TS001-TS010 standards.",
      "items": {
        "type": "object"
      },
      "type": "array"
    },
    "post_lint_score": {
      "description": "Agent Ergonomics Score (0-100) after optimization.",
      "type": "number"
    },
    "smells_resolved": {
      "description": "Total tool-smell findings resolved across all schemas.",
      "type": "integer"
    },
    "tools_optimized": {
      "description": "Count of MCP tools processed.",
      "type": "integer"
    }
  },
  "required": [
    "tools_optimized",
    "smells_resolved",
    "hardened_tools",
    "post_lint_score"
  ],
  "type": "object"
}
[2] {}
"annotations": {
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": true
}
descriptionString · text preview
result.tools[2].description
Run automated NTSB/AAIB-grade Flight Data Recorder incident analysis on a recorded agent trajectory.

### Purpose
Inspects a recorded `.flight.json` cassette (inline `cassette_json` or local `cassette_path`) to classify incident severity, isolate fault inception step, trace state-mutating blast radius, and produce actionable remediation steps.

### When to use
- Diagnosing why a production or staging AI agent looped, exhausted budget, spiked in latency, or crashed mid-run.
- Generating structured Markdown or JSON post-mortem reports for engineering incidents.

### When NOT to use
- Do NOT use to check two trajectories side-by-side; use `agentflight_diff_cassettes` instead.

### Behavior & Side Effects
- Read-only: Parses telemetry spans in memory and leaves source cassettes completely untouched.
- Deterministic: Identical cassettes yield identical root-cause classifications and fault steps.
"inputSchema": {
  "properties": {
    "cassette_json": {
      "description": "Inline cassette JSON object containing agent_id, head_hash, and spans to investigate.",
      "type": "object"
    },
    "max_cost_ceiling_usd": {
      "default": 2.0,
      "description": "Optional USD budget ceiling used to classify budget exhaustion incidents (default 2.0).",
      "type": "number"
    }
  },
  "type": "object"
}
"name": "agentflight_post_mortem"
"outputSchema": {
  "properties": {
    "is_hash_chain_valid": {
      "description": "True if SHA-256 chain integrity succeeded.",
      "type": "boolean"
    },
    "markdown_report": {
      "description": "Full Markdown post-mortem report.",
      "type": "string"
    },
    "root_cause": {
      "description": "Classified root cause category.",
      "type": "string"
    },
    "severity": {
      "description": "Incident severity (CRITICAL, HIGH, MEDIUM, LOW, CLEAN).",
      "type": "string"
    },
    "summary": {
      "description": "Concise narrative of what failed and where.",
      "type": "string"
    }
  },
  "required": [
    "severity",
    "root_cause",
    "is_hash_chain_valid",
    "summary",
    "markdown_report"
  ],
  "type": "object"
}
[3] {}
"annotations": {
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": true
}
descriptionString · text preview
result.tools[3].description
Audit an agent trajectory cassette or candidate tool call against the AgentFlight Runtime Policy Firewall (PF001-PF007).

### Purpose
Enforces deterministic security guardrails checking for SSRF private/metadata URLs, path traversal, destructive SQL, live secret exfiltration, unauthorized actors, and per-flight mutation caps.

### When to use
- Pre-screening a live candidate tool call (`actor` + `input_payload`) before executing side effects.
- Auditing an entire recorded flight cassette (`cassette_json` or `cassette_path`) under `standard`, `strict`, or `read-only` policy modes.

### When NOT to use
- Do NOT use to validate static MCP tool schema syntax; use `agentflight_lint_tools` instead.

### Behavior & Side Effects
- Read-only: Evaluates rules deterministically in memory without mutating state or calling networks.
"inputSchema": {
  "properties": {
    "actor": {
      "description": "Candidate tool or MCP actor name when auditing a single tool call.",
      "type": "string"
    },
    "cassette_json": {
      "description": "Inline cassette JSON object containing spans to audit across the full flight.",
      "type": "object"
    },
    "input_payload": {
      "description": "Candidate argument dictionary paired with `actor` for single-call preflight evaluation.",
      "type": "object"
    },
    "mode": {
      "default": "standard",
      "description": "Firewall enforcement profile.",
      "enum": [
        "standard",
        "strict",
        "read-only"
      ],
      "type": "string"
    }
  },
  "type": "object"
}
"name": "agentflight_audit_policy"
"outputSchema": {
  "properties": {
    "passed": {
      "description": "True if zero blocking policy violations were detected.",
      "type": "boolean"
    },
    "violation_count": {
      "description": "Total policy violations found.",
      "type": "integer"
    },
    "violations": {
      "description": "List of PF001-PF007 policy findings with rule_id, severity, step_index, and message.",
      "items": {
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "passed",
    "violation_count",
    "violations"
  ],
  "type": "object"
}
[4] {}
"annotations": {
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": true
}
descriptionString · text preview
result.tools[4].description
Evaluate a declarative FlightContract behavioral specification against a recorded AI agent trajectory.

### Purpose
Checks recorded trajectories against formal SLAs and invariants including required tool calls (`must_call`), forbidden tools (`must_not_call`), ordered tool sequences (`must_follow_order`), step/cost/token/latency ceilings, zero-error tolerance, and SHA-256 integrity.

### When to use
- Running deterministic behavioral regression gates on recorded cassettes in CI or post-deployment checks.
- Validating that an agent obeyed cost budgets and required workflow ordering.

### When NOT to use
- Do NOT use to compare two cassettes without an explicit contract; use `agentflight_diff_cassettes` instead.

### Behavior & Side Effects
- Read-only: Evaluates the supplied `contract` against cassette spans purely in memory.
"inputSchema": {
  "properties": {
    "cassette_json": {
      "description": "Inline cassette JSON object to evaluate against the behavioral contract.",
      "type": "object"
    },
    "contract": {
      "description": "FlightContract specification object (name, must_call, must_not_call, must_follow_order, max_cost_usd, max_steps, max_tokens, max_error_rate).",
      "type": "object"
    }
  },
  "required": [
    "contract"
  ],
  "type": "object"
}
"name": "agentflight_evaluate_contract"
"outputSchema": {
  "properties": {
    "failed_rules": {
      "description": "Count of rules failing.",
      "type": "integer"
    },
    "passed": {
      "description": "True if all contract rules passed.",
      "type": "boolean"
    },
    "passed_rules": {
      "description": "Count of rules passing.",
      "type": "integer"
    },
    "results": {
      "description": "Per-rule pass/fail breakdown with expected vs actual evidence.",
      "items": {
        "type": "object"
      },
      "type": "array"
    },
    "score": {
      "description": "Percentage score (0-100) across contract rules.",
      "type": "number"
    },
    "total_rules": {
      "description": "Number of rules evaluated.",
      "type": "integer"
    }
  },
  "required": [
    "passed",
    "score",
    "total_rules",
    "passed_rules",
    "failed_rules",
    "results"
  ],
  "type": "object"
}

Response result

Response structure

Inferred from examples
  • idinteger
  • jsonrpcstring
  • resultobject
    • toolsobject[]
      • annotationsobject
        • destructiveHintboolean
        • idempotentHintboolean
        • openWorldHintboolean
        • readOnlyHintboolean
      • descriptionstring
      • inputSchemaobject
        • propertiesobject
          • toolsobject
            • descriptionstring
            • itemsobject
              • typestring
            • typestring
          • compactobject
            • descriptionstring
            • typestring
          • cassette_jsonobject
            • descriptionstring
            • typestring
          • max_cost_ceiling_usdobject
            • defaultnumber
            • descriptionstring
            • typestring
          • actorobject
            • descriptionstring
            • typestring
          • input_payloadobject
            • descriptionstring
            • typestring
          • modeobject
            • defaultstring
            • descriptionstring
            • enumstring[]
            • typestring
          • contractobject
            • descriptionstring
            • typestring
        • requiredstring[]
        • typestring
      • namestring
      • outputSchemaobject
        • propertiesobject
          • passedobject
            • descriptionstring
            • typestring
          • scoreobject
            • descriptionstring
            • typestring
          • violationsobject
            • descriptionstring
            • itemsobject
              • propertiesobject
                • messageobject
                  • descriptionstring
                  • typestring
                • rule_idobject
                  • descriptionstring
                  • typestring
                • severityobject
                  • descriptionstring
                  • typestring
                • tool_nameobject
                  • descriptionstring
                  • typestring
              • typestring
            • typestring
          • hardened_toolsobject
            • descriptionstring
            • itemsobject
              • typestring
            • typestring
          • post_lint_scoreobject
            • descriptionstring
            • typestring
          • smells_resolvedobject
            • descriptionstring
            • typestring
          • tools_optimizedobject
            • descriptionstring
            • typestring
          • is_hash_chain_validobject
            • descriptionstring
            • typestring
          • markdown_reportobject
            • descriptionstring
            • typestring
          • root_causeobject
            • descriptionstring
            • typestring
          • severityobject
            • descriptionstring
            • typestring
          • summaryobject
            • descriptionstring
            • typestring
          • violation_countobject
            • descriptionstring
            • typestring
          • failed_rulesobject
            • descriptionstring
            • typestring
          • passed_rulesobject
            • descriptionstring
            • typestring
          • resultsobject
            • descriptionstring
            • itemsobject
              • typestring
            • typestring
          • total_rulesobject
            • descriptionstring
            • typestring
        • requiredstring[]
        • typestring

Sellers

SellerPricingRequests · 30dPerformanceAccess
AgentFlight MCP Streamable Gateway · POST · View API reference$0.001 / call—
—successP50—
Loading...
Selected pricing · codesphereugUSD / call
Unit price
$0.001

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 6. Price update time: not supplied.

calls

Total $0.1

API

Method
POST
Endpoint
https://api.openany.si/v1/agent-apis/codesphereug/mcp
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
  'https://api.openany.si/v1/agent-apis/codesphereug/mcp' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "id": 2,
  "jsonrpc": "2.0",
  "method": "tools/list"
}'

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

No input fields are required by this API contract.

Required markers inside a nested object or variant apply when that object or variant is used.

Sample response

Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.

Recorded upstream MCP tools/list (HTTP 200)
{
  "id": 2,
  "jsonrpc": "2.0",
  "result": {
    "tools": [
      {
        "annotations": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "description": "Statically inspect MCP tool schema definitions against 10 ergonomics rules (TS001-TS010) and calculate an Agent Ergonomics Score.\n\n### Purpose\nEvaluates Model Context Protocol tool schemas for anti-patterns that confuse LLM tool-calling (tautological descriptions, missing required arrays, ambiguous parameter types, unconstrained inputs, and lack of usage boundaries). Produces an ergonomics score (0-100) and actionable remediation steps.\n\n### When to use\n- Auditing and validating MCP tool definitions during development or CI/CD pre-commit hooks.\n- Benchmarking tool schema clarity and LLM tool selection readiness before deployment.\n\n### When NOT to use\n- Do NOT use to evaluate runtime agent trajectory recordings; use `agentflight_diff_cassettes` or `agentflight_verify_cassette` instead.\n\n### Behavior & Side Effects\n- Read-only: Operates purely in-memory; does not mutate any schemas or files.\n- Deterministic: Analyzes schemas through static AST and JSON Schema inspection with zero external network calls.",
        "inputSchema": {
          "properties": {
            "tools": {
              "description": "List of MCP tool definition objects containing name, description, and inputSchema to be statically analyzed.",
              "items": {
                "type": "object"
              },
              "type": "array"
            }
          },
          "required": [
            "tools"
          ],
          "type": "object"
        },
        "name": "agentflight_lint_tools",
        "outputSchema": {
          "properties": {
            "passed": {
              "description": "True if score meets or exceeds the passing threshold (>= 80).",
              "type": "boolean"
            },
            "score": {
              "description": "Agent Ergonomics Score from 0 to 100.",
              "type": "number"
            },
            "violations": {
              "description": "List of detected tool smell violations across rules TS001 through TS010.",
              "items": {
                "properties": {
                  "message": {
                    "description": "Diagnosis and guidance on fixing the smell.",
                    "type": "string"
                  },
                  "rule_id": {
                    "description": "Ergonomics rule code (e.g. TS001).",
                    "type": "string"
                  },
                  "severity": {
                    "description": "Severity grade (error, warning, info).",
                    "type": "string"
                  },
                  "tool_name": {
                    "description": "Violating tool name.",
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": "array"
            }
          },
          "required": [
            "score",
            "passed",
            "violations"
          ],
          "type": "object"
        }
      },
      {
        "annotations": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "description": "Automatically refactor flawed MCP tool JSON schemas into hardened, Glama/AgentFlight Gold Standard definitions.\n\n### Purpose\nApplies deterministic remediation transformations via `ToolSchemaOptimizer` to fix `TS001`-`TS010` ergonomics smells, inferring parameter types, adding explicit constraints, marking required arrays, and upgrading descriptions with Purpose, When to use, and Behavior sections.\n\n### When to use\n- Automatically fixing low Agent Ergonomics Scores reported by `agentflight_lint_tools` before publishing an MCP server.\n- Enforcing typed JSON schemas and bounded enums across legacy tool wrappers.\n\n### When NOT to use\n- Do NOT use when you only need a non-mutating lint audit without generating refactored schemas; use `agentflight_lint_tools` instead.\n\n### Behavior & Side Effects\n- Read-only: Transforms schemas purely in memory and returns hardened copies without modifying disk files.\n- Deterministic & Idempotent: Running optimization multiple times converges cleanly.",
        "inputSchema": {
          "properties": {
            "compact": {
              "description": "Strip display-only schema metadata ('title', verbose boilerplate, nullable anyOf wrappers) to cut per-turn tokens.",
              "type": "boolean"
            },
            "tools": {
              "description": "Array of raw MCP tool schema objects containing name, description, and inputSchema.",
              "items": {
                "type": "object"
              },
              "type": "array"
            }
          },
          "required": [
            "tools"
          ],
          "type": "object"
        },
        "name": "agentflight_optimize_tools",
        "outputSchema": {
          "properties": {
            "hardened_tools": {
              "description": "Refactored MCP tool schemas conforming to TS001-TS010 standards.",
              "items": {
                "type": "object"
              },
              "type": "array"
            },
            "post_lint_score": {
              "description": "Agent Ergonomics Score (0-100) after optimization.",
              "type": "number"
            },
            "smells_resolved": {
              "description": "Total tool-smell findings resolved across all schemas.",
              "type": "integer"
            },
            "tools_optimized": {
              "description": "Count of MCP tools processed.",
              "type": "integer"
            }
          },
          "required": [
            "tools_optimized",
            "smells_resolved",
            "hardened_tools",
            "post_lint_score"
          ],
          "type": "object"
        }
      },
      {
        "annotations": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "description": "Run automated NTSB/AAIB-grade Flight Data Recorder incident analysis on a recorded agent trajectory.\n\n### Purpose\nInspects a recorded `.flight.json` cassette (inline `cassette_json` or local `cassette_path`) to classify incident severity, isolate fault inception step, trace state-mutating blast radius, and produce actionable remediation steps.\n\n### When to use\n- Diagnosing why a production or staging AI agent looped, exhausted budget, spiked in latency, or crashed mid-run.\n- Generating structured Markdown or JSON post-mortem reports for engineering incidents.\n\n### When NOT to use\n- Do NOT use to check two trajectories side-by-side; use `agentflight_diff_cassettes` instead.\n\n### Behavior & Side Effects\n- Read-only: Parses telemetry spans in memory and leaves source cassettes completely untouched.\n- Deterministic: Identical cassettes yield identical root-cause classifications and fault steps.",
        "inputSchema": {
          "properties": {
            "cassette_json": {
              "description": "Inline cassette JSON object containing agent_id, head_hash, and spans to investigate.",
              "type": "object"
            },
            "max_cost_ceiling_usd": {
              "default": 2.0,
              "description": "Optional USD budget ceiling used to classify budget exhaustion incidents (default 2.0).",
              "type": "number"
            }
          },
          "type": "object"
        },
        "name": "agentflight_post_mortem",
        "outputSchema": {
          "properties": {
            "is_hash_chain_valid": {
              "description": "True if SHA-256 chain integrity succeeded.",
              "type": "boolean"
            },
            "markdown_report": {
              "description": "Full Markdown post-mortem report.",
              "type": "string"
            },
            "root_cause": {
              "description": "Classified root cause category.",
              "type": "string"
            },
            "severity": {
              "description": "Incident severity (CRITICAL, HIGH, MEDIUM, LOW, CLEAN).",
              "type": "string"
            },
            "summary": {
              "description": "Concise narrative of what failed and where.",
              "type": "string"
            }
          },
          "required": [
            "severity",
            "root_cause",
            "is_hash_chain_valid",
            "summary",
            "markdown_report"
          ],
          "type": "object"
        }
      },
      {
        "annotations": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "description": "Audit an agent trajectory cassette or candidate tool call against the AgentFlight Runtime Policy Firewall (PF001-PF007).\n\n### Purpose\nEnforces deterministic security guardrails checking for SSRF private/metadata URLs, path traversal, destructive SQL, live secret exfiltration, unauthorized actors, and per-flight mutation caps.\n\n### When to use\n- Pre-screening a live candidate tool call (`actor` + `input_payload`) before executing side effects.\n- Auditing an entire recorded flight cassette (`cassette_json` or `cassette_path`) under `standard`, `strict`, or `read-only` policy modes.\n\n### When NOT to use\n- Do NOT use to validate static MCP tool schema syntax; use `agentflight_lint_tools` instead.\n\n### Behavior & Side Effects\n- Read-only: Evaluates rules deterministically in memory without mutating state or calling networks.",
        "inputSchema": {
          "properties": {
            "actor": {
              "description": "Candidate tool or MCP actor name when auditing a single tool call.",
              "type": "string"
            },
            "cassette_json": {
              "description": "Inline cassette JSON object containing spans to audit across the full flight.",
              "type": "object"
            },
            "input_payload": {
              "description": "Candidate argument dictionary paired with `actor` for single-call preflight evaluation.",
              "type": "object"
            },
            "mode": {
              "default": "standard",
              "description": "Firewall enforcement profile.",
              "enum": [
                "standard",
                "strict",
                "read-only"
              ],
              "type": "string"
            }
          },
          "type": "object"
        },
        "name": "agentflight_audit_policy",
        "outputSchema": {
          "properties": {
            "passed": {
              "description": "True if zero blocking policy violations were detected.",
              "type": "boolean"
            },
            "violation_count": {
              "description": "Total policy violations found.",
              "type": "integer"
            },
            "violations": {
              "description": "List of PF001-PF007 policy findings with rule_id, severity, step_index, and message.",
              "items": {
                "type": "object"
              },
              "type": "array"
            }
          },
          "required": [
            "passed",
            "violation_count",
            "violations"
          ],
          "type": "object"
        }
      },
      {
        "annotations": {
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": false,
          "readOnlyHint": true
        },
        "description": "Evaluate a declarative FlightContract behavioral specification against a recorded AI agent trajectory.\n\n### Purpose\nChecks recorded trajectories against formal SLAs and invariants including required tool calls (`must_call`), forbidden tools (`must_not_call`), ordered tool sequences (`must_follow_order`), step/cost/token/latency ceilings, zero-error tolerance, and SHA-256 integrity.\n\n### When to use\n- Running deterministic behavioral regression gates on recorded cassettes in CI or post-deployment checks.\n- Validating that an agent obeyed cost budgets and required workflow ordering.\n\n### When NOT to use\n- Do NOT use to compare two cassettes without an explicit contract; use `agentflight_diff_cassettes` instead.\n\n### Behavior & Side Effects\n- Read-only: Evaluates the supplied `contract` against cassette spans purely in memory.",
        "inputSchema": {
          "properties": {
            "cassette_json": {
              "description": "Inline cassette JSON object to evaluate against the behavioral contract.",
              "type": "object"
            },
            "contract": {
              "description": "FlightContract specification object (name, must_call, must_not_call, must_follow_order, max_cost_usd, max_steps, max_tokens, max_error_rate).",
              "type": "object"
            }
          },
          "required": [
            "contract"
          ],
          "type": "object"
        },
        "name": "agentflight_evaluate_contract",
        "outputSchema": {
          "properties": {
            "failed_rules": {
              "description": "Count of rules failing.",
              "type": "integer"
            },
            "passed": {
              "description": "True if all contract rules passed.",
              "type": "boolean"
            },
            "passed_rules": {
              "description": "Count of rules passing.",
              "type": "integer"
            },
            "results": {
              "description": "Per-rule pass/fail breakdown with expected vs actual evidence.",
              "items": {
                "type": "object"
              },
              "type": "array"
            },
            "score": {
              "description": "Percentage score (0-100) across contract rules.",
              "type": "number"
            },
            "total_rules": {
              "description": "Number of rules evaluated.",
              "type": "integer"
            }
          },
          "required": [
            "passed",
            "score",
            "total_rules",
            "passed_rules",
            "failed_rules",
            "results"
          ],
          "type": "object"
        }
      }
    ]
  }
}

Agent integration

Copy the resource contract without sharing an API key.

View API Markdown
API Markdown
# AgentFlight MCP Streamable Gateway

High-performance Agent Tool Ergonomics & Flight Recorder Model Context Protocol (MCP) server running on Vercel Serverless. Provides static tool-smell linting, token-budget compiling, policy enforcement, and flight recording. Supports Streamable HTTP and SSE over JSON-RPC 2.0.
Documentation: https://openany.si/apis/35d1bb22-114b-4588-87fc-683099b08d9c
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/codesphereug/mcp
Price: $0.001 / call
Provider: codesphereug
Contract revision: 6
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.

Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.

## Prepared request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/codesphereug/mcp' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "id": 2,
  "jsonrpc": "2.0",
  "method": "tools/list"
}'
```

## API contract
```json
{
  "resource_type": "api",
  "name": "AgentFlight MCP Streamable Gateway",
  "endpoint": "https://api.openany.si/v1/agent-apis/codesphereug/mcp",
  "method": "POST",
  "content_type": "application/json",
  "execution_mode": "sync",
  "authentication": {
    "type": "bearer",
    "environment_variable": "OPENANY_API_KEY"
  },
  "inputs": [],
  "billing": {
    "currency": "USD",
    "mode": "fixed",
    "priceMicroUsd": "1000",
    "rounding": null,
    "unit": "call",
    "unitQuantity": null
  },
  "examples": [
    {
      "http_status": 200,
      "name": "Recorded upstream MCP tools/list (HTTP 200)",
      "request": {
        "body": {
          "id": 2,
          "jsonrpc": "2.0",
          "method": "tools/list"
        },
        "headers": {},
        "path": {},
        "query": {}
      },
      "response_body": {
        "id": 2,
        "jsonrpc": "2.0",
        "result": {
          "tools": [
            {
              "annotations": {
                "destructiveHint": false,
                "idempotentHint": true,
                "openWorldHint": false,
                "readOnlyHint": true
              },
              "description": "Statically inspect MCP tool schema definitions against 10 ergonomics rules (TS001-TS010) and calculate an Agent Ergonomics Score.\n\n### Purpose\nEvaluates Model Context Protocol tool schemas for anti-patterns that confuse LLM tool-calling (tautological descriptions, missing required arrays, ambiguous parameter types, unconstrained inputs, and lack of usage boundaries). Produces an ergonomics score (0-100) and actionable remediation steps.\n\n### When to use\n- Auditing and validating MCP tool definitions during development or CI/CD pre-commit hooks.\n- Benchmarking tool schema clarity and LLM tool selection readiness before deployment.\n\n### When NOT to use\n- Do NOT use to evaluate runtime agent trajectory recordings; use `agentflight_diff_cassettes` or `agentflight_verify_cassette` instead.\n\n### Behavior & Side Effects\n- Read-only: Operates purely in-memory; does not mutate any schemas or files.\n- Deterministic: Analyzes schemas through static AST and JSON Schema inspection with zero external network calls.",
              "inputSchema": {
                "properties": {
                  "tools": {
                    "description": "List of MCP tool definition objects containing name, description, and inputSchema to be statically analyzed.",
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "tools"
                ],
                "type": "object"
              },
              "name": "agentflight_lint_tools",
              "outputSchema": {
                "properties": {
                  "passed": {
                    "description": "True if score meets or exceeds the passing threshold (>= 80).",
                    "type": "boolean"
                  },
                  "score": {
                    "description": "Agent Ergonomics Score from 0 to 100.",
                    "type": "number"
                  },
                  "violations": {
                    "description": "List of detected tool smell violations across rules TS001 through TS010.",
                    "items": {
                      "properties": {
                        "message": {
                          "description": "Diagnosis and guidance on fixing the smell.",
                          "type": "string"
                        },
                        "rule_id": {
                          "description": "Ergonomics rule code (e.g. TS001).",
                          "type": "string"
                        },
                        "severity": {
                          "description": "Severity grade (error, warning, info).",
                          "type": "string"
                        },
                        "tool_name": {
                          "description": "Violating tool name.",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "score",
                  "passed",
                  "violations"
                ],
                "type": "object"
              }
            },
            {
              "annotations": {
                "destructiveHint": false,
                "idempotentHint": true,
                "openWorldHint": false,
                "readOnlyHint": true
              },
              "description": "Automatically refactor flawed MCP tool JSON schemas into hardened, Glama/AgentFlight Gold Standard definitions.\n\n### Purpose\nApplies deterministic remediation transformations via `ToolSchemaOptimizer` to fix `TS001`-`TS010` ergonomics smells, inferring parameter types, adding explicit constraints, marking required arrays, and upgrading descriptions with Purpose, When to use, and Behavior sections.\n\n### When to use\n- Automatically fixing low Agent Ergonomics Scores reported by `agentflight_lint_tools` before publishing an MCP server.\n- Enforcing typed JSON schemas and bounded enums across legacy tool wrappers.\n\n### When NOT to use\n- Do NOT use when you only need a non-mutating lint audit without generating refactored schemas; use `agentflight_lint_tools` instead.\n\n### Behavior & Side Effects\n- Read-only: Transforms schemas purely in memory and returns hardened copies without modifying disk files.\n- Deterministic & Idempotent: Running optimization multiple times converges cleanly.",
              "inputSchema": {
                "properties": {
                  "compact": {
                    "description": "Strip display-only schema metadata ('title', verbose boilerplate, nullable anyOf wrappers) to cut per-turn tokens.",
                    "type": "boolean"
                  },
                  "tools": {
                    "description": "Array of raw MCP tool schema objects containing name, description, and inputSchema.",
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "tools"
                ],
                "type": "object"
              },
              "name": "agentflight_optimize_tools",
              "outputSchema": {
                "properties": {
                  "hardened_tools": {
                    "description": "Refactored MCP tool schemas conforming to TS001-TS010 standards.",
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "post_lint_score": {
                    "description": "Agent Ergonomics Score (0-100) after optimization.",
                    "type": "number"
                  },
                  "smells_resolved": {
                    "description": "Total tool-smell findings resolved across all schemas.",
                    "type": "integer"
                  },
                  "tools_optimized": {
                    "description": "Count of MCP tools processed.",
                    "type": "integer"
                  }
                },
                "required": [
                  "tools_optimized",
                  "smells_resolved",
                  "hardened_tools",
                  "post_lint_score"
                ],
                "type": "object"
              }
            },
            {
              "annotations": {
                "destructiveHint": false,
                "idempotentHint": true,
                "openWorldHint": false,
                "readOnlyHint": true
              },
              "description": "Run automated NTSB/AAIB-grade Flight Data Recorder incident analysis on a recorded agent trajectory.\n\n### Purpose\nInspects a recorded `.flight.json` cassette (inline `cassette_json` or local `cassette_path`) to classify incident severity, isolate fault inception step, trace state-mutating blast radius, and produce actionable remediation steps.\n\n### When to use\n- Diagnosing why a production or staging AI agent looped, exhausted budget, spiked in latency, or crashed mid-run.\n- Generating structured Markdown or JSON post-mortem reports for engineering incidents.\n\n### When NOT to use\n- Do NOT use to check two trajectories side-by-side; use `agentflight_diff_cassettes` instead.\n\n### Behavior & Side Effects\n- Read-only: Parses telemetry spans in memory and leaves source cassettes completely untouched.\n- Deterministic: Identical cassettes yield identical root-cause classifications and fault steps.",
              "inputSchema": {
                "properties": {
                  "cassette_json": {
                    "description": "Inline cassette JSON object containing agent_id, head_hash, and spans to investigate.",
                    "type": "object"
                  },
                  "max_cost_ceiling_usd": {
                    "default": 2.0,
                    "description": "Optional USD budget ceiling used to classify budget exhaustion incidents (default 2.0).",
                    "type": "number"
                  }
                },
                "type": "object"
              },
              "name": "agentflight_post_mortem",
              "outputSchema": {
                "properties": {
                  "is_hash_chain_valid": {
                    "description": "True if SHA-256 chain integrity succeeded.",
                    "type": "boolean"
                  },
                  "markdown_report": {
                    "description": "Full Markdown post-mortem report.",
                    "type": "string"
                  },
                  "root_cause": {
                    "description": "Classified root cause category.",
                    "type": "string"
                  },
                  "severity": {
                    "description": "Incident severity (CRITICAL, HIGH, MEDIUM, LOW, CLEAN).",
                    "type": "string"
                  },
                  "summary": {
                    "description": "Concise narrative of what failed and where.",
                    "type": "string"
                  }
                },
                "required": [
                  "severity",
                  "root_cause",
                  "is_hash_chain_valid",
                  "summary",
                  "markdown_report"
                ],
                "type": "object"
              }
            },
            {
              "annotations": {
                "destructiveHint": false,
                "idempotentHint": true,
                "openWorldHint": false,
                "readOnlyHint": true
              },
              "description": "Audit an agent trajectory cassette or candidate tool call against the AgentFlight Runtime Policy Firewall (PF001-PF007).\n\n### Purpose\nEnforces deterministic security guardrails checking for SSRF private/metadata URLs, path traversal, destructive SQL, live secret exfiltration, unauthorized actors, and per-flight mutation caps.\n\n### When to use\n- Pre-screening a live candidate tool call (`actor` + `input_payload`) before executing side effects.\n- Auditing an entire recorded flight cassette (`cassette_json` or `cassette_path`) under `standard`, `strict`, or `read-only` policy modes.\n\n### When NOT to use\n- Do NOT use to validate static MCP tool schema syntax; use `agentflight_lint_tools` instead.\n\n### Behavior & Side Effects\n- Read-only: Evaluates rules deterministically in memory without mutating state or calling networks.",
              "inputSchema": {
                "properties": {
                  "actor": {
                    "description": "Candidate tool or MCP actor name when auditing a single tool call.",
                    "type": "string"
                  },
                  "cassette_json": {
                    "description": "Inline cassette JSON object containing spans to audit across the full flight.",
                    "type": "object"
                  },
                  "input_payload": {
                    "description": "Candidate argument dictionary paired with `actor` for single-call preflight evaluation.",
                    "type": "object"
                  },
                  "mode": {
                    "default": "standard",
                    "description": "Firewall enforcement profile.",
                    "enum": [
                      "standard",
                      "strict",
                      "read-only"
                    ],
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "name": "agentflight_audit_policy",
              "outputSchema": {
                "properties": {
                  "passed": {
                    "description": "True if zero blocking policy violations were detected.",
                    "type": "boolean"
                  },
                  "violation_count": {
                    "description": "Total policy violations found.",
                    "type": "integer"
                  },
                  "violations": {
                    "description": "List of PF001-PF007 policy findings with rule_id, severity, step_index, and message.",
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "passed",
                  "violation_count",
                  "violations"
                ],
                "type": "object"
              }
            },
            {
              "annotations": {
                "destructiveHint": false,
                "idempotentHint": true,
                "openWorldHint": false,
                "readOnlyHint": true
              },
              "description": "Evaluate a declarative FlightContract behavioral specification against a recorded AI agent trajectory.\n\n### Purpose\nChecks recorded trajectories against formal SLAs and invariants including required tool calls (`must_call`), forbidden tools (`must_not_call`), ordered tool sequences (`must_follow_order`), step/cost/token/latency ceilings, zero-error tolerance, and SHA-256 integrity.\n\n### When to use\n- Running deterministic behavioral regression gates on recorded cassettes in CI or post-deployment checks.\n- Validating that an agent obeyed cost budgets and required workflow ordering.\n\n### When NOT to use\n- Do NOT use to compare two cassettes without an explicit contract; use `agentflight_diff_cassettes` instead.\n\n### Behavior & Side Effects\n- Read-only: Evaluates the supplied `contract` against cassette spans purely in memory.",
              "inputSchema": {
                "properties": {
                  "cassette_json": {
                    "description": "Inline cassette JSON object to evaluate against the behavioral contract.",
                    "type": "object"
                  },
                  "contract": {
                    "description": "FlightContract specification object (name, must_call, must_not_call, must_follow_order, max_cost_usd, max_steps, max_tokens, max_error_rate).",
                    "type": "object"
                  }
                },
                "required": [
                  "contract"
                ],
                "type": "object"
              },
              "name": "agentflight_evaluate_contract",
              "outputSchema": {
                "properties": {
                  "failed_rules": {
                    "description": "Count of rules failing.",
                    "type": "integer"
                  },
                  "passed": {
                    "description": "True if all contract rules passed.",
                    "type": "boolean"
                  },
                  "passed_rules": {
                    "description": "Count of rules passing.",
                    "type": "integer"
                  },
                  "results": {
                    "description": "Per-rule pass/fail breakdown with expected vs actual evidence.",
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "score": {
                    "description": "Percentage score (0-100) across contract rules.",
                    "type": "number"
                  },
                  "total_rules": {
                    "description": "Number of rules evaluated.",
                    "type": "integer"
                  }
                },
                "required": [
                  "passed",
                  "score",
                  "total_rules",
                  "passed_rules",
                  "failed_rules",
                  "results"
                ],
                "type": "object"
              }
            }
          ]
        }
      }
    }
  ]
}
```

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Recorded upstream MCP tools/list (HTTP 200)

Published documentation example. Verify the actual response after an approved call.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/codesphereug/mcp' \
      -X POST \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json' \
      --data-raw '{
      "id": 2,
      "jsonrpc": "2.0",
      "method": "tools/list"
    }'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "id": 2,
      "jsonrpc": "2.0",
      "result": {
        "tools": [
          {
            "annotations": {
              "destructiveHint": false,
              "idempotentHint": true,
              "openWorldHint": false,
              "readOnlyHint": true
            },
            "description": "Statically inspect MCP tool schema definitions against 10 ergonomics rules (TS001-TS010) and calculate an Agent Ergonomics Score.\n\n### Purpose\nEvaluates Model Context Protocol tool schemas for anti-patterns that confuse LLM tool-calling (tautological descriptions, missing required arrays, ambiguous parameter types, unconstrained inputs, and lack of usage boundaries). Produces an ergonomics score (0-100) and actionable remediation steps.\n\n### When to use\n- Auditing and validating MCP tool definitions during development or CI/CD pre-commit hooks.\n- Benchmarking tool schema clarity and LLM tool selection readiness before deployment.\n\n### When NOT to use\n- Do NOT use to evaluate runtime agent trajectory recordings; use `agentflight_diff_cassettes` or `agentflight_verify_cassette` instead.\n\n### Behavior & Side Effects\n- Read-only: Operates purely in-memory; does not mutate any schemas or files.\n- Deterministic: Analyzes schemas through static AST and JSON Schema inspection with zero external network calls.",
            "inputSchema": {
              "properties": {
                "tools": {
                  "description": "List of MCP tool definition objects containing name, description, and inputSchema to be statically analyzed.",
                  "items": {
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "tools"
              ],
              "type": "object"
            },
            "name": "agentflight_lint_tools",
            "outputSchema": {
              "properties": {
                "passed": {
                  "description": "True if score meets or exceeds the passing threshold (>= 80).",
                  "type": "boolean"
                },
                "score": {
                  "description": "Agent Ergonomics Score from 0 to 100.",
                  "type": "number"
                },
                "violations": {
                  "description": "List of detected tool smell violations across rules TS001 through TS010.",
                  "items": {
                    "properties": {
                      "message": {
                        "description": "Diagnosis and guidance on fixing the smell.",
                        "type": "string"
                      },
                      "rule_id": {
                        "description": "Ergonomics rule code (e.g. TS001).",
                        "type": "string"
                      },
                      "severity": {
                        "description": "Severity grade (error, warning, info).",
                        "type": "string"
                      },
                      "tool_name": {
                        "description": "Violating tool name.",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "score",
                "passed",
                "violations"
              ],
              "type": "object"
            }
          },
          {
            "annotations": {
              "destructiveHint": false,
              "idempotentHint": true,
              "openWorldHint": false,
              "readOnlyHint": true
            },
            "description": "Automatically refactor flawed MCP tool JSON schemas into hardened, Glama/AgentFlight Gold Standard definitions.\n\n### Purpose\nApplies deterministic remediation transformations via `ToolSchemaOptimizer` to fix `TS001`-`TS010` ergonomics smells, inferring parameter types, adding explicit constraints, marking required arrays, and upgrading descriptions with Purpose, When to use, and Behavior sections.\n\n### When to use\n- Automatically fixing low Agent Ergonomics Scores reported by `agentflight_lint_tools` before publishing an MCP server.\n- Enforcing typed JSON schemas and bounded enums across legacy tool wrappers.\n\n### When NOT to use\n- Do NOT use when you only need a non-mutating lint audit without generating refactored schemas; use `agentflight_lint_tools` instead.\n\n### Behavior & Side Effects\n- Read-only: Transforms schemas purely in memory and returns hardened copies without modifying disk files.\n- Deterministic & Idempotent: Running optimization multiple times converges cleanly.",
            "inputSchema": {
              "properties": {
                "compact": {
                  "description": "Strip display-only schema metadata ('title', verbose boilerplate, nullable anyOf wrappers) to cut per-turn tokens.",
                  "type": "boolean"
                },
                "tools": {
                  "description": "Array of raw MCP tool schema objects containing name, description, and inputSchema.",
                  "items": {
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "tools"
              ],
              "type": "object"
            },
            "name": "agentflight_optimize_tools",
            "outputSchema": {
              "properties": {
                "hardened_tools": {
                  "description": "Refactored MCP tool schemas conforming to TS001-TS010 standards.",
                  "items": {
                    "type": "object"
                  },
                  "type": "array"
                },
                "post_lint_score": {
                  "description": "Agent Ergonomics Score (0-100) after optimization.",
                  "type": "number"
                },
                "smells_resolved": {
                  "description": "Total tool-smell findings resolved across all schemas.",
                  "type": "integer"
                },
                "tools_optimized": {
                  "description": "Count of MCP tools processed.",
                  "type": "integer"
                }
              },
              "required": [
                "tools_optimized",
                "smells_resolved",
                "hardened_tools",
                "post_lint_score"
              ],
              "type": "object"
            }
          },
          {
            "annotations": {
              "destructiveHint": false,
              "idempotentHint": true,
              "openWorldHint": false,
              "readOnlyHint": true
            },
            "description": "Run automated NTSB/AAIB-grade Flight Data Recorder incident analysis on a recorded agent trajectory.\n\n### Purpose\nInspects a recorded `.flight.json` cassette (inline `cassette_json` or local `cassette_path`) to classify incident severity, isolate fault inception step, trace state-mutating blast radius, and produce actionable remediation steps.\n\n### When to use\n- Diagnosing why a production or staging AI agent looped, exhausted budget, spiked in latency, or crashed mid-run.\n- Generating structured Markdown or JSON post-mortem reports for engineering incidents.\n\n### When NOT to use\n- Do NOT use to check two trajectories side-by-side; use `agentflight_diff_cassettes` instead.\n\n### Behavior & Side Effects\n- Read-only: Parses telemetry spans in memory and leaves source cassettes completely untouched.\n- Deterministic: Identical cassettes yield identical root-cause classifications and fault steps.",
            "inputSchema": {
              "properties": {
                "cassette_json": {
                  "description": "Inline cassette JSON object containing agent_id, head_hash, and spans to investigate.",
                  "type": "object"
                },
                "max_cost_ceiling_usd": {
                  "default": 2.0,
                  "description": "Optional USD budget ceiling used to classify budget exhaustion incidents (default 2.0).",
                  "type": "number"
                }
              },
              "type": "object"
            },
            "name": "agentflight_post_mortem",
            "outputSchema": {
              "properties": {
                "is_hash_chain_valid": {
                  "description": "True if SHA-256 chain integrity succeeded.",
                  "type": "boolean"
                },
                "markdown_report": {
                  "description": "Full Markdown post-mortem report.",
                  "type": "string"
                },
                "root_cause": {
                  "description": "Classified root cause category.",
                  "type": "string"
                },
                "severity": {
                  "description": "Incident severity (CRITICAL, HIGH, MEDIUM, LOW, CLEAN).",
                  "type": "string"
                },
                "summary": {
                  "description": "Concise narrative of what failed and where.",
                  "type": "string"
                }
              },
              "required": [
                "severity",
                "root_cause",
                "is_hash_chain_valid",
                "summary",
                "markdown_report"
              ],
              "type": "object"
            }
          },
          {
            "annotations": {
              "destructiveHint": false,
              "idempotentHint": true,
              "openWorldHint": false,
              "readOnlyHint": true
            },
            "description": "Audit an agent trajectory cassette or candidate tool call against the AgentFlight Runtime Policy Firewall (PF001-PF007).\n\n### Purpose\nEnforces deterministic security guardrails checking for SSRF private/metadata URLs, path traversal, destructive SQL, live secret exfiltration, unauthorized actors, and per-flight mutation caps.\n\n### When to use\n- Pre-screening a live candidate tool call (`actor` + `input_payload`) before executing side effects.\n- Auditing an entire recorded flight cassette (`cassette_json` or `cassette_path`) under `standard`, `strict`, or `read-only` policy modes.\n\n### When NOT to use\n- Do NOT use to validate static MCP tool schema syntax; use `agentflight_lint_tools` instead.\n\n### Behavior & Side Effects\n- Read-only: Evaluates rules deterministically in memory without mutating state or calling networks.",
            "inputSchema": {
              "properties": {
                "actor": {
                  "description": "Candidate tool or MCP actor name when auditing a single tool call.",
                  "type": "string"
                },
                "cassette_json": {
                  "description": "Inline cassette JSON object containing spans to audit across the full flight.",
                  "type": "object"
                },
                "input_payload": {
                  "description": "Candidate argument dictionary paired with `actor` for single-call preflight evaluation.",
                  "type": "object"
                },
                "mode": {
                  "default": "standard",
                  "description": "Firewall enforcement profile.",
                  "enum": [
                    "standard",
                    "strict",
                    "read-only"
                  ],
                  "type": "string"
                }
              },
              "type": "object"
            },
            "name": "agentflight_audit_policy",
            "outputSchema": {
              "properties": {
                "passed": {
                  "description": "True if zero blocking policy violations were detected.",
                  "type": "boolean"
                },
                "violation_count": {
                  "description": "Total policy violations found.",
                  "type": "integer"
                },
                "violations": {
                  "description": "List of PF001-PF007 policy findings with rule_id, severity, step_index, and message.",
                  "items": {
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "passed",
                "violation_count",
                "violations"
              ],
              "type": "object"
            }
          },
          {
            "annotations": {
              "destructiveHint": false,
              "idempotentHint": true,
              "openWorldHint": false,
              "readOnlyHint": true
            },
            "description": "Evaluate a declarative FlightContract behavioral specification against a recorded AI agent trajectory.\n\n### Purpose\nChecks recorded trajectories against formal SLAs and invariants including required tool calls (`must_call`), forbidden tools (`must_not_call`), ordered tool sequences (`must_follow_order`), step/cost/token/latency ceilings, zero-error tolerance, and SHA-256 integrity.\n\n### When to use\n- Running deterministic behavioral regression gates on recorded cassettes in CI or post-deployment checks.\n- Validating that an agent obeyed cost budgets and required workflow ordering.\n\n### When NOT to use\n- Do NOT use to compare two cassettes without an explicit contract; use `agentflight_diff_cassettes` instead.\n\n### Behavior & Side Effects\n- Read-only: Evaluates the supplied `contract` against cassette spans purely in memory.",
            "inputSchema": {
              "properties": {
                "cassette_json": {
                  "description": "Inline cassette JSON object to evaluate against the behavioral contract.",
                  "type": "object"
                },
                "contract": {
                  "description": "FlightContract specification object (name, must_call, must_not_call, must_follow_order, max_cost_usd, max_steps, max_tokens, max_error_rate).",
                  "type": "object"
                }
              },
              "required": [
                "contract"
              ],
              "type": "object"
            },
            "name": "agentflight_evaluate_contract",
            "outputSchema": {
              "properties": {
                "failed_rules": {
                  "description": "Count of rules failing.",
                  "type": "integer"
                },
                "passed": {
                  "description": "True if all contract rules passed.",
                  "type": "boolean"
                },
                "passed_rules": {
                  "description": "Count of rules passing.",
                  "type": "integer"
                },
                "results": {
                  "description": "Per-rule pass/fail breakdown with expected vs actual evidence.",
                  "items": {
                    "type": "object"
                  },
                  "type": "array"
                },
                "score": {
                  "description": "Percentage score (0-100) across contract rules.",
                  "type": "number"
                },
                "total_rules": {
                  "description": "Number of rules evaluated.",
                  "type": "integer"
                }
              },
              "required": [
                "passed",
                "score",
                "total_rules",
                "passed_rules",
                "failed_rules",
                "results"
              ],
              "type": "object"
            }
          }
        ]
      }
    }

Loading related APIs…

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use AgentFlight MCP Streamable Gateway with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.