Tool overview
What is AI Agent Builder?
A AI Agent Builder is a tool that helps you build agent configs — JSON Schema tools, MCP, prompts, token budget.
Why use AI Agent Builder?
It improves readability and workflow speed when you need to build agent configs — JSON Schema tools, MCP, prompts, token budget—entirely in your browser with no server uploads.
Key Features
Instant syntax highlighting and error catching, client-side privacy, and one-click copy for aI Agent Builder workflows. Build agent configs — JSON Schema tools, MCP, prompts, token budget
How to Use
Follow these steps to get accurate results from the tool interface above.
- Choose a workflow mode: full agent, function calling only, MCP setup, or structured response — or load a starter template.
- Define tools with clear names, descriptions, and representative example JSON arguments (or skip tools in MCP-only / structured modes).
- Review inferred JSON Schema and enable strict mode when targeting OpenAI structured outputs or strict tool calling.
- Validate mcpServers JSON for Cursor or Claude Desktop: fix command/args, http(s) URLs, and string-only env values.
- Write system instructions that say when to call each tool, what never to invent, and any safety confirmations.
- Open Token budget, select cl100k_base or o200k_base, and confirm prompt + tools + MCP still fit your model.
- Export OpenAI tools JSON, response_format, MCP config, markdown summary, or a full bundle for handoff.
- Re-validate after every schema, path, or prompt change; keep secrets as placeholders until they reach the local client.
AI Agent Builder — Complete Guide & Use Cases
Authoritative walkthrough: workflow modes, real agent use cases, schema and MCP fixes, token budgeting, exports, and security — aligned with the guided builder above.
AI Agent Builder guide — start here
This page is the canonical guide to building LLM agents with DevUtilities’ AI Agent Builder. Use the guided workflow above while you read, or jump to a topic below. Schemas, MCP JSON, prompts, and token counts stay in your browser — nothing is uploaded for inference.
What AI Agent Builder does
AI Agent Builder is a client-side workshop for assembling production-ready agent configs: JSON Schema tools for OpenAI function calling, mcpServers validation for Cursor and Claude Desktop, system prompts, combined token budgets, and exportable artifacts for team handoff.
What you get
- Four workflow modes: full agent, function calling only, MCP setup, structured response
- Starter templates: Filesystem MCP, OpenAI function calling, structured classifier
- Example-JSON → JSON Schema inference with optional strict additionalProperties: false
- Local MCP lint with JSON-pointer errors and warnings
- Combined token budget across prompt, minified tools, and MCP JSON
- Exports: OpenAI tools JSON, response_format, MCP config, markdown summary, full bundle
Use this builder when
- You need OpenAI tools JSON and do not want to hand-write JSON Schema
- You are wiring Cursor or Claude Desktop MCP servers and want lint before paste
- You must prove an agent’s prompt + tools still fit a context window
- You want one persisted session that chains schema → MCP → prompt → export
Prefer a standalone tool when
- You only need deep encoding comparison or cost math → LLM Token Counter
- You only need one-off MCP lint without prompts → MCP Validator
- You only need schema inference from a sample → Structured Output Generator
Workflow modes — pick the right path
Pick a mode before defining tools. Modes hide irrelevant steps so you do not fight empty panels.
Workflow modes
| Mode | Includes | Best for |
|---|---|---|
| Full agent | Tools + schema + MCP + prompt + token budget + export | End-to-end agents that call tools and use local MCP servers |
| Function calling | Tools + schema + prompt + budget (skips MCP) | OpenAI / API-only agents with no desktop MCP client |
| MCP setup | MCP validation + prompt + export (hides tool schemas) | Cursor / Claude Desktop filesystem or remote MCP wiring |
| Structured response | Single output JSON Schema + prompt + export | Classifiers and extractors that return one JSON object |
Step-by-step: build, validate, budget, export
First-time walkthrough for a full agent. Template shortcuts skip several of these steps.
- Choose Full agent (or load the OpenAI function calling template).
- On Define tools, add each tool with a clear name, description, and representative example JSON arguments.
- Review inferred JSON Schema — enable strict mode for OpenAI structured outputs / strict tool calling.
- Paste or edit mcpServers JSON if the agent will run inside Cursor or Claude Desktop; fix every error before continuing.
- Write system instructions that tell the model when to call which tool and what never to invent.
- Open Token budget, pick cl100k_base or o200k_base, and confirm the combined total fits your model.
- Export OpenAI tools JSON for the API, MCP config for the desktop client, and a markdown summary for the team.
- Optionally export the full bundle JSON so another engineer can reload the same session state later.
Use case: OpenAI function-calling support agent
Problem: you need a customer-support agent that can look up weather and orders via OpenAI function calling, but hand-written JSON Schema keeps failing strict validation.
How this tool solves it
- Select Function calling mode or load the OpenAI function calling template (weather + order lookup).
- Edit example JSON so every field you need in production appears at least once — missing keys will not become required properties.
- Enable strict mode so every object emits additionalProperties: false.
- Tighten the system prompt: confirm order IDs, never invent tool results, keep replies concise.
- Check the token budget under o200k_base if you deploy on GPT-4o.
- Export OpenAI tools JSON and paste it into your Chat Completions or Responses API client.
Outcome: a strict, API-ready tools array plus a prompt that matches the schemas — without a separate schema editor.
Use case: Cursor / Claude Desktop filesystem MCP
Problem: Cursor or Claude Desktop rejects your mcp.json, or the filesystem server starts with the wrong directory and can see too much of the disk.
How this tool solves it
- Choose MCP setup mode or load the Filesystem MCP template.
- Replace /path/to/allowed/dir with an absolute path to the only directory the agent may touch.
- Run validation — fix missing command/args, invalid URLs, and non-string env values.
- Use placeholder env values (not production secrets) while linting in the browser.
- Export validated mcpServers JSON into your Cursor or Claude Desktop config.
- Add system instructions that require confirmation before destructive file operations.
Outcome: a linted MCP client config and a prompt that matches the server’s capabilities before you restart the desktop app.
Use case: structured sentiment classifier
Problem: you need the model to return sentiment, confidence, topics, and a short summary as JSON — free-form answers break your downstream parser.
How this tool solves it
- Choose Structured response mode or load the structured classifier template.
- Edit the example JSON to match the exact shape your pipeline expects.
- Enable strict mode so undeclared keys are rejected at validation time.
- Write a system prompt that forbids prose outside the JSON object.
- Export response_format json_schema for OpenAI structured outputs.
- Verify the token budget still leaves room for the input document you will classify.
Outcome: a single output schema you can drop into structured-output APIs with matching instructions.
Use case: catch agent token overflow before deploy
Problem: after adding three tools and a long MCP config, the agent’s combined prompt no longer fits GPT-4o’s practical budget once chat history is included.
How this tool solves it
- Open the Token budget step and note the combined total for prompt + minified tools + MCP JSON.
- Shorten tool descriptions and remove unused example fields that inflate required schemas.
- Move verbose policy text out of the always-on system prompt into on-demand retrieval.
- If you only need deeper encoding math, copy the assembled payload into LLM Token Counter.
- Re-export only after the budget shows comfortable headroom for history and completions.
Outcome: you catch overflow in the builder — not after the first production 400 error.
Tool schema inference from example JSON
Example JSON must be strict JSON. Only keys present in the example become required properties. Nested objects and arrays infer types from the sample values.
Rules of thumb
- Include every field the model should be allowed to send — omission means “not required,” not “optional with a default.”
- Use realistic enums as string samples, then hand-edit the schema if you need an explicit enum array.
- Enable strict mode to emit additionalProperties: false on every object — recommended for OpenAI structured outputs and strict tool calling.
- Empty arrays infer weak item types — add at least one representative element.
MCP client validation for Cursor & Claude
Stdio servers need command and typically args. Remote servers need a valid http or https url. Env values must be strings. Errors block export confidence; warnings deserve a manual pass.
Common client envelopes
- Top-level key must be "mcpServers" for Cursor and Claude Desktop conventions
- Filesystem servers should use absolute allow-listed paths
- Prefer env placeholders while editing in the browser; inject real secrets only on the local machine
Combined token budget assembly
Token counts combine system prompt, minified tool schemas, and MCP JSON. Choose cl100k_base for GPT-4 / Claude approximation or o200k_base for GPT-4o. Counts use local tiktoken tables — no API calls.
- Treat the number as a floor: chat history and tool results add more at runtime
- Re-check after every schema or prompt edit
- Use LLM Token Counter when you need boundary maps or monthly cost cards on a custom payload
Export artifacts and when to use each
Export artifacts
| Export | Contents | Use it for |
|---|---|---|
| OpenAI tools JSON | tools array with name, description, parameters schema | Chat Completions / Responses function calling |
| Structured response | response_format json_schema | Strict JSON answers without tools |
| MCP config | Validated mcpServers object | Cursor or Claude Desktop client files |
| Markdown summary | Human-readable overview of tools, MCP, prompt, budget | PR descriptions and runbooks |
| Full bundle | Metadata, validation status, and session payload | Team handoff and session restore |
Fix: OpenAI strict schema rejection
Symptoms: OpenAI rejects the tools payload, or the model cannot pass arguments that your app actually needs.
Why it happens
Strict schemas reject undeclared keys. If the example JSON omitted a field, it never became a property. If strict mode is off, OpenAI structured-output limits may still reject open objects.
Diagnose
Compare the inferred schema properties to the arguments your application sends. Check that strict mode is enabled when targeting OpenAI structured outputs.
Fixes
- Add missing keys to the example JSON and regenerate the schema.
- Enable strict mode so additionalProperties: false is consistent across nested objects.
- Shorten unsupported constructs (deeply nested oneOf, exotic types) per OpenAI’s structured output limits.
- Re-export tools JSON and retest with a single known-good argument payload.
Fix: MCP transport and envelope errors
Symptoms: validation errors on command/url, client fails to spawn the server, or remote transport never connects.
Why it happens
Stdio entries without command, remote entries without http(s) URLs, numeric env values, or wrong top-level keys break client parsers.
Diagnose
Read each lint error’s JSON pointer. Confirm the envelope uses mcpServers and that each server is either stdio (command) or remote (url), not a broken hybrid.
Fixes
- Add command and args for stdio servers; quote all env values as strings.
- Use http:// or https:// URLs for remote MCP transports.
- Fix the top-level key name to mcpServers.
- Re-run validation until errors are gone; triage warnings before shipping.
Fix: secrets leaking via MCP env exports
Symptoms: API keys appear in exported JSON, git diffs, or screenshots of the builder.
Why it happens
MCP env blocks are plain JSON. Pasting production secrets into a browser tool — even a local one — increases leak risk via clipboard, screen share, and accidental commits.
Diagnose
Search exports and the MCP panel for sk-, Bearer, or vendor key patterns. Check that committed configs only contain placeholders.
Fixes
- Replace secrets with ${ENV_VAR} style placeholders in the builder.
- Inject real values only in the local desktop client or deployment secret store.
- Rotate any key that was pasted into chat, tickets, or shared screens.
- Add a pre-commit secret scan for mcp.json and agent bundle files.
This workspace does not upload your config — but clipboard and git still can.
Security checklist
- Never commit API keys in MCP env blocks — use environment variable placeholders
- Use absolute, least-privilege paths for filesystem MCP servers
- Review token budget before adding large few-shot examples to production prompts
- Prefer strict schemas so tools cannot accept unexpected keys
- Treat exported bundles as sensitive if they contain internal tool names or infra hosts
Agent builder best practices
- Start from a template, then delete tools you do not need — smaller schemas are cheaper and safer
- Name tools with clear verbs (lookup_order, get_weather) that match system-prompt instructions
- Keep one source of truth: export from this builder instead of maintaining divergent schema copies
- Re-validate MCP after every path or command change
- Document the token budget in the markdown export so reviewers see cost impact in PRs
- Use LLM Token Counter for deep encoding diffs; use this builder for the assembled agent
Frequently Asked Questions
Expandable answers for common debugging bottlenecks and data privacy questions.
Official Documentation & References
Authoritative specifications and platform documentation for this utility.