captainphantasy/floyd-v5/api-format-verifier

Claude Code and agent skill by captainphantasy/floyd-v5

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Verify API request and response payloads against provider-specific schema requirements and token limits

Install

npx vskill@latest install captainphantasy/floyd-v5/api-format-verifier

SKILL.md

The same SKILL.md was published earlier as captainphantasy/floyd-v5/api-format-verifier.

API Format Verifier

Verify API request and response payloads against provider-specific schema requirements and token limits.

When to Use

  • WHEN mode=BUILD and constructing an API integration to validate payloads before sending
  • WHEN mode=DEBUG when an API call returns a schema validation error from the provider
  • WHEN mode=BUILD and switching between LLM providers (OpenAI, Anthropic, Google) to verify format compatibility

Actions

'verify-request' | 'verify-response' | 'check-compatibility'

Parameters

ParameterTypeRequiredDescription
payloadobjectyesThe API request or response payload to verify
api_typestringyesTarget API: openai, anthropic, google, custom
directionstringyesPayload direction: request, response
check_token_limitsbooleannoWhether to verify token count against model limits (default: true)

Execution Pipeline

Step 1: Validate Structure

Use mcp_floyd-devtools_api_format_verifier with action verify_request or verify_response. This checks the payload against the provider's JSON schema, ensuring all required fields are present, types are correct, and enums contain valid values.

Step 2: Check Token Limits

If check_token_limits=true, use mcp_floyd-devtools_api_format_verifier with estimate_cost=true to compute the token count. Compare against the model's context window and output limits. Flag payloads that exceed 80% of the limit as risky.

Step 3: Compatibility Check

If switching providers, use mcp_floyd-devtools_api_format_verifier with action check_compatibility to identify format differences between the source and target API. Report field mappings, unsupported features, and required transformations.

Output Shape

json
{
"valid": true,
"errors": [
{
"field": "string — field path (e.g., messages.0.role)",
"message": "string — validation error description",
"severity": "ERROR | WARNING"
}
],
"token_estimate": {
"input_tokens": 1500,
"output_tokens": 0,
"context_window_usage": 0.03,
"within_limits": true
},
"compatibility_notes": ["string — provider-specific warnings"]
}

Failure Modes

  • IF the payload is invalid JSON: report the parse error with line and column
  • IF the api_type is not recognized: fall back to a generic JSON schema validation and report unsupported provider

Examples

json
{
"action": "verify-request",
"payload": {"model": "gpt-4o", "messages": [{"role": "user", "content": "Hello"}]},
"api_type": "openai",
"direction": "request",
"check_token_limits": true
}

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/captainphantasy/floyd-v5/api-format-verifier/badge)](https://verified-skill.com/skills/captainphantasy/floyd-v5/api-format-verifier)

Something wrong with this skill or its page? Tell us.