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...
AgentFlight MCP Streamable Gateway
Prepare your request, then continue with your agent.
Selected price
$0.001 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
idintegerjsonrpcstringresultobjecttoolsobject[]annotationsobjectdestructiveHintbooleanidempotentHintbooleanopenWorldHintbooleanreadOnlyHintboolean
descriptionstringinputSchemaobjectpropertiesobjecttoolsobjectdescriptionstringitemsobjecttypestring
typestring
compactobjectdescriptionstringtypestring
cassette_jsonobjectdescriptionstringtypestring
max_cost_ceiling_usdobjectdefaultnumberdescriptionstringtypestring
actorobjectdescriptionstringtypestring
input_payloadobjectdescriptionstringtypestring
modeobjectdefaultstringdescriptionstringenumstring[]typestring
contractobjectdescriptionstringtypestring
requiredstring[]typestring
namestringoutputSchemaobjectpropertiesobjectpassedobjectdescriptionstringtypestring
scoreobjectdescriptionstringtypestring
violationsobjectdescriptionstringitemsobjectpropertiesobjectmessageobjectdescriptionstringtypestring
rule_idobjectdescriptionstringtypestring
severityobjectdescriptionstringtypestring
tool_nameobjectdescriptionstringtypestring
typestring
typestring
hardened_toolsobjectdescriptionstringitemsobjecttypestring
typestring
post_lint_scoreobjectdescriptionstringtypestring
smells_resolvedobjectdescriptionstringtypestring
tools_optimizedobjectdescriptionstringtypestring
is_hash_chain_validobjectdescriptionstringtypestring
markdown_reportobjectdescriptionstringtypestring
root_causeobjectdescriptionstringtypestring
severityobjectdescriptionstringtypestring
summaryobjectdescriptionstringtypestring
violation_countobjectdescriptionstringtypestring
failed_rulesobjectdescriptionstringtypestring
passed_rulesobjectdescriptionstringtypestring
resultsobjectdescriptionstringitemsobjecttypestring
typestring
total_rulesobjectdescriptionstringtypestring
requiredstring[]typestring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
id?: number;
jsonrpc?: string;
result?: {
tools?: Array<{
annotations?: {
destructiveHint?: boolean;
idempotentHint?: boolean;
openWorldHint?: boolean;
readOnlyHint?: boolean;
};
description?: string;
inputSchema?: {
properties?: {
tools?: {
description?: string;
items?: {
type?: string;
};
type?: string;
};
compact?: {
description?: string;
type?: string;
};
cassette_json?: {
description?: string;
type?: string;
};
max_cost_ceiling_usd?: {
default?: number;
description?: string;
type?: string;
};
actor?: {
description?: string;
type?: string;
};
input_payload?: {
description?: string;
type?: string;
};
mode?: {
default?: string;
description?: string;
enum?: Array<string>;
type?: string;
};
contract?: {
description?: string;
type?: string;
};
};
required?: Array<string>;
type?: string;
};
name?: string;
outputSchema?: {
properties?: {
passed?: {
description?: string;
type?: string;
};
score?: {
description?: string;
type?: string;
};
violations?: {
description?: string;
items?: {
properties?: {
message?: {
description?: string;
type?: string;
};
rule_id?: {
description?: string;
type?: string;
};
severity?: {
description?: string;
type?: string;
};
tool_name?: {
description?: string;
type?: string;
};
};
type?: string;
};
type?: string;
};
hardened_tools?: {
description?: string;
items?: {
type?: string;
};
type?: string;
};
post_lint_score?: {
description?: string;
type?: string;
};
smells_resolved?: {
description?: string;
type?: string;
};
tools_optimized?: {
description?: string;
type?: string;
};
is_hash_chain_valid?: {
description?: string;
type?: string;
};
markdown_report?: {
description?: string;
type?: string;
};
root_cause?: {
description?: string;
type?: string;
};
severity?: {
description?: string;
type?: string;
};
summary?: {
description?: string;
type?: string;
};
violation_count?: {
description?: string;
type?: string;
};
failed_rules?: {
description?: string;
type?: string;
};
passed_rules?: {
description?: string;
type?: string;
};
results?: {
description?: string;
items?: {
type?: string;
};
type?: string;
};
total_rules?: {
description?: string;
type?: string;
};
};
required?: Array<string>;
type?: string;
};
}>;
};
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
codesphereugCurrent AgentFlight MCP Streamable Gateway · POST · View API reference | $0.001 / call | — | —successP50— |
- 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.
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.
{
"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
# 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
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect 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.
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 / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Terminal · cURLcurl \ '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" }'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" } } ] } }