Agent Tool Schema Lint
Tool definitions agents can actually use.
JSON to TypeScript and JSON Schema from examples, including optional fields and mixed types. Sample inference, not a verified contract.
Try your own input locally without an account. API automation uses wallet sign-in and a scoped key; no USDC required.
Your first free API call in three steps ↓Runs in this browser. No account, wallet or API key. Your input and result are not sent to InvokePort. API automation uses a scoped key.
Calculated by the same tool engine on this fixed synthetic example. No account, payment or external provider call. Use the tool page to submit your own input.
{
"typeName": "Customer",
"samples": [
{
"id": 1,
"name": "Alpha",
"active": true
},
{
"id": 2,
"name": "Beta"
}
]
}Reveal the result to inspect the output format before using the tool.
For developers connecting agents, webhooks and automation workflows. Review a real example first, then bring your own synthetic JSON.
Two Customer objects produce a schema and TypeScript. The field missing from one sample becomes optional.
Open the browser tool ↑Open the free tool, connect a browser wallet and sign the off-chain sign-in message. If prompted, create an account profile with a display name. No USDC, payment signature or transaction is needed for this free call.
Open the free tool →Supply 1–100 samples, press Run free call and save the JSON result. Review the schema and types before using them as a contract.
Get help with a request ID →Create a limited key in Keys with tools:invoke and the json-types tool allowed. Keep it in your local environment, never in a prompt, URL or client bundle.
// Node.js 22+. Read your private key from the process environment.
const origin = "https://invokeport.com";
const key = process.env.INVOKEPORT_API_KEY;
if (!key) throw new Error("Set INVOKEPORT_API_KEY privately");
const attemptId = crypto.randomUUID(); // retain it if the response is uncertain
const response = await fetch(origin + "/api/tools/json-types", {
method: "POST",
headers: {
"content-type": "application/json",
authorization: "Bearer " + key,
"idempotency-key": attemptId
},
body: JSON.stringify({
typeName: "Customer",
samples: [{ id: 1, name: "Alpha", active: true }, { id: 2, name: "Beta" }]
})
});
const result = await response.json();
if (!response.ok) throw new Error(String(result.error));
console.log(result.typescript);This example makes one request. For an unknown outcome, retain the attempt ID; do not automatically retry. Invalid input returns 400; a missing or revoked key returns 401; a tool outside the key policy returns 403.
API schemas and request examples are on the tool reference. Read the authentication and payment guide.
Tool definitions agents can actually use.
How often does your model return valid JSON?
Repair malformed JSON from your agent.
Submitted input and result bodies are not stored by InvokePort. Operational metadata and hashes may be recorded. Do not submit credentials or unnecessary personal data.
Free results are not retained for recovery. Save the returned JSON; do not automatically repeat a request with an unknown outcome.
Delivery problem? Contact support with the request ID.