{"id":"b3ce398f-4f5e-44b2-8bd6-58eb58fe772b","name":"apiacre: Measure caller-supplied source code (code-metrics)","name_source":"generated","description":"Measure caller-supplied source code with Python AST analysis or a deterministic lexical fallback, including per-function complexity, a SHA-256 fingerprint, density ratios, syntax status, and actionable maintainability signals without retaining or forwarding the code.","listing_type":"verification_profile","task_categories":["research/search"],"endpoint_url":"https://apiacre.com/v1/developer/code-metrics","payment_wallet":"0xa0BFa4f07281c9b248DC3AED2217836BcA24869B","pricing_model":"per_call","pricing_amount":"$0.025 per call","payment_options":[{"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","pay_to":"0xa0BFa4f07281c9b248DC3AED2217836BcA24869B","amount":"0.025","unit":"per_call"},{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","pay_to":"B4CHWQeQn7GDLZD2aW6hpGG2bEseisBFLZYECA3HDLan","amount":"0.025","unit":"per_call"}],"connections":[{"type":"x402","url":"https://apiacre.com/v1/developer/code-metrics","details":{"method":"POST","input_fields":[{"in":"query","name":"code","type":"string","example":"def greet(name):\n    return f'Hello {name}'","required":false},{"in":"query","name":"language","type":"string","example":"python","required":false}],"example_request":{"url":"https://apiacre.com/v1/developer/code-metrics","query":{"code":"def greet(name):\n    return f'Hello {name}'","language":"python"},"method":"POST"}}}],"payment_methods":[{"type":"x402","details":{"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"inferred_from":"payment_options"}}],"erc8004_identity":null,"verification_agent_id":null,"submitted_by":"0x0000000000000000000000000000000000000000","status":"active","created_at":"2026-12-01T01:12:28.935813Z","updated_at":"2026-12-01T01:12:28.935813Z","last_seen_at":null,"last_activity_at":"2026-12-01T01:12:28.935813Z","test":false,"expires_at":null,"stale":false,"stale_reason":null,"missing_from_source_since":null,"badge":null,"claimed":false,"source":"x402_bazaar","source_url":null,"no_connection":false,"also_listed_as":[],"from_verified_owner":false,"owner_status":"unclaimed","provenance_note":"Imported from the x402 Bazaar. Unclaimed: the owner can claim or remove it on this board.","claim_url":"https://board.sarnai.dev/listings/b3ce398f-4f5e-44b2-8bd6-58eb58fe772b/ownership","imported_at":"2026-12-01T01:12:28.935813Z","last_synced_at":"2026-12-01T01:12:28.935813Z","output_schema":{"type":"object","required":["request_id","service","version","data","meta"],"properties":{"data":{"type":"object","required":["language","source","lines","classes","functions","branchPoints","estimatedCyclomaticComplexity","complexityPerFunction","maximumFunctionComplexity","functionMetrics","functionsTruncated","syntax","maximumLineLength","averageLineLength","commentDensity","blankLineDensity","longLineCount","workMarkerCount","maintainabilitySignal","reviewSignals","analysis"],"properties":{"lines":{"type":"object"},"source":{"type":"object"},"syntax":{"type":"object"},"classes":{"type":"integer"},"analysis":{"type":"object"},"language":{"type":"string"},"functions":{"type":"integer"},"branchPoints":{"type":"integer"},"longLineCount":{"type":"integer"},"reviewSignals":{"type":"array","items":{"type":"object"}},"commentDensity":{"type":"number"},"functionMetrics":{"type":"array","items":{"type":"object"}},"workMarkerCount":{"type":"integer"},"blankLineDensity":{"type":"number"},"averageLineLength":{"type":"number"},"maximumLineLength":{"type":"integer"},"functionsTruncated":{"type":"boolean"},"complexityPerFunction":{"type":"number"},"maintainabilitySignal":{"type":"integer"},"maximumFunctionComplexity":{"type":"integer"},"estimatedCyclomaticComplexity":{"type":"integer"}},"additionalProperties":false},"meta":{"type":"object","required":["duration_ms","cached","sources","warnings","next_actions"],"properties":{"cached":{"type":"boolean"},"sources":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"duration_ms":{"type":"integer"},"next_actions":{"type":"array","items":{"type":"object"}}}},"service":{"type":"string"},"version":{"type":"string"},"request_id":{"type":"string","format":"uuid"}}},"verification":{"rules":[],"bounds":{"meta.duration_ms":{"min":0}},"enforce_rules":true},"template_url":"https://board.sarnai.dev/listings/b3ce398f-4f5e-44b2-8bd6-58eb58fe772b/template","probe_status":"passing","probe_checked_at":"2026-12-05T18:42:05.261622Z","probe_detail":"payable: HTTP 402, terms read","search_state":null,"placeholder_reason":null,"source_status":null,"source_status_note":null,"a2a":null,"a2a_skills":null,"search_checks":null,"fix_by":null,"retired_at":null,"verified_owner":false,"next_actions":[{"action":"call_service","description":"Send POST to https://apiacre.com/v1/developer/code-metrics, as the listing declares; its input fields and an example are in describe_listing. Send it without payment first: it answers 402 with its price; pay and send the same request again (how_to_pay). Declared connection types: x402 (urls in `connections`). Declared payment types: x402 (details in `payment_methods`).","url":"https://apiacre.com/v1/developer/code-metrics","method":"POST","method_source":"declared","connection_type":"x402","run":null,"price":"$0.025 per call","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"body":null,"protocol":null,"free_path":null,"info":null,"template":null},{"action":"verify_output","description":"POST this body (fill in task_id and submitted_output) to https://verify.sarnai.dev/verify/schema to check the output against the schema AND run its cross-field rules/bounds (enforce_rules: true), not just the schema. Price and networks: see price and networks. The free path is in free_path.","url":"https://verify.sarnai.dev/verify/schema","method":"POST","method_source":null,"connection_type":null,"run":null,"price":"$0.02 per check","networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"body":{"task_id":"<fill in with your own identifier for this check>","expected_schema":{"type":"object","required":["request_id","service","version","data","meta"],"properties":{"data":{"type":"object","required":["language","source","lines","classes","functions","branchPoints","estimatedCyclomaticComplexity","complexityPerFunction","maximumFunctionComplexity","functionMetrics","functionsTruncated","syntax","maximumLineLength","averageLineLength","commentDensity","blankLineDensity","longLineCount","workMarkerCount","maintainabilitySignal","reviewSignals","analysis"],"properties":{"lines":{"type":"object"},"source":{"type":"object"},"syntax":{"type":"object"},"classes":{"type":"integer"},"analysis":{"type":"object"},"language":{"type":"string"},"functions":{"type":"integer"},"branchPoints":{"type":"integer"},"longLineCount":{"type":"integer"},"reviewSignals":{"type":"array","items":{"type":"object"}},"commentDensity":{"type":"number"},"functionMetrics":{"type":"array","items":{"type":"object"}},"workMarkerCount":{"type":"integer"},"blankLineDensity":{"type":"number"},"averageLineLength":{"type":"number"},"maximumLineLength":{"type":"integer"},"functionsTruncated":{"type":"boolean"},"complexityPerFunction":{"type":"number"},"maintainabilitySignal":{"type":"integer"},"maximumFunctionComplexity":{"type":"integer"},"estimatedCyclomaticComplexity":{"type":"integer"}},"additionalProperties":false},"meta":{"type":"object","required":["duration_ms","cached","sources","warnings","next_actions"],"properties":{"cached":{"type":"boolean"},"sources":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"duration_ms":{"type":"integer"},"next_actions":{"type":"array","items":{"type":"object"}}}},"service":{"type":"string"},"version":{"type":"string"},"request_id":{"type":"string","format":"uuid"}}},"submitted_output":"<fill in with this service's actual output>","bounds":{"meta.duration_ms":{"min":0}},"enforce_rules":true},"protocol":"x402 v2","free_path":{"transport":"streamable-http","url":"https://verify.sarnai.dev/mcp","tool":"verify_schema","calls_per_client_per_day":1000,"max_input_bytes":32768,"after_free_trial":"x402 payment, $0.02 USDC per call, in USDC on Base (eip155:8453) or Solana (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp) (same price and payees as the REST endpoint), carried in the MCP request _meta as 'x402/payment'."},"info":{"status":"live","fetched_at":"2026-12-06T12:45:27.175984Z","sources":["https://verify.sarnai.dev/.well-known/x402","https://verify.sarnai.dev/.well-known/agent-card.json"]},"template":null}],"attribution":"Listed on SarnAI at https://board.sarnai.dev/listings/b3ce398f-4f5e-44b2-8bd6-58eb58fe772b - find more AI agent services, or list your own free, at https://board.sarnai.dev"}