Overview
- Category
- Productivity
- API mode
not_available- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/bar-graph-maker
Execute availability
This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.
POST /api/v1/tools/bar-graph-maker/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
data· string · required- Enter label | value.
title· string · required- Enter chart title.
orientation· string · required-
Enter orientation. Accepted values:
vertical, horizontal.
{
"type": "object",
"properties": {
"data": {
"type": "string",
"description": "Enter label | value."
},
"title": {
"type": "string",
"description": "Enter chart title."
},
"orientation": {
"type": "string",
"description": "Enter orientation.",
"enum": [
"vertical",
"horizontal"
]
}
},
"required": [
"data",
"title",
"orientation"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
svg· string- Bar graph SVG produced by the tool.
data· array- Chart data produced by the tool.
maximum· number- Maximum value produced by the tool.
{
"type": "object",
"properties": {
"svg": {
"type": "string",
"description": "Bar graph SVG produced by the tool."
},
"data": {
"type": "array",
"description": "Chart data produced by the tool."
},
"maximum": {
"type": "number",
"description": "Maximum value produced by the tool."
}
},
"additionalProperties": false
}
Bar Graph Maker worked example
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/bar-graph-maker/execute" \
-H "Content-Type: application/json" \
-d '{
"data": "January|42\nFebruary|65\nMarch|53\nApril|78",
"title": "Monthly completions",
"orientation": "vertical"
}'
{
"ok": true,
"data": {
"slug": "bar-graph-maker",
"result": {
"values": {
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-label=\"Monthly completions\" viewBox=\"0 0 640 360\"><title>Monthly completions</title><g><rect x=\"80\" y=\"165.3846153846154\" width=\"81.25\" height=\"134.6153846153846\" rx=\"4\"/><text x=\"80\" y=\"325\">January</text><text x=\"80\" y=\"155.3846153846154\">42</text></g><g><rect x=\"205\" y=\"91.66666666666666\" width=\"81.25\" height=\"208.33333333333334\" rx=\"4\"/><text x=\"205\" y=\"325\">February</text><text x=\"205\" y=\"81.66666666666666\">65</text></g><g><rect x=\"330\" y=\"130.1282051282051\" width=\"81.25\" height=\"169.8717948717949\" rx=\"4\"/><text x=\"330\" y=\"325\">March</text><text x=\"330\" y=\"120.12820512820511\">53</text></g><g><rect x=\"455\" y=\"50\" width=\"81.25\" height=\"250\" rx=\"4\"/><text x=\"455\" y=\"325\">April</text><text x=\"455\" y=\"40\">78</text></g></svg>",
"data": [
{
"label": "January",
"value": 42
},
{
"label": "February",
"value": 65
},
{
"label": "March",
"value": 53
},
{
"label": "April",
"value": 78
}
],
"maximum": 78
},
"display": {
"display": "<svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-label=\"Monthly completions\" viewBox=\"0 0 640 360\"><title>Monthly completions</title><g><rect x=\"80\" y=\"165.3846153846154\" width=\"81.25\" height=\"134.6153846153846\" rx=\"4\"/><text x=\"80\" y=\"325\">January</text><text x=\"80\" y=\"155.3846153846154\">42</text></g><g><rect x=\"205\" y=\"91.66666666666666\" width=\"81.25\" height=\"208.33333333333334\" rx=\"4\"/><text x=\"205\" y=\"325\">February</text><text x=\"205\" y=\"81.66666666666666\">65</text></g><g><rect x=\"330\" y=\"130.1282051282051\" width=\"81.25\" height=\"169.8717948717949\" rx=\"4\"/><text x=\"330\" y=\"325\">March</text><text x=\"330\" y=\"120.12820512820511\">53</text></g><g><rect x=\"455\" y=\"50\" width=\"81.25\" height=\"250\" rx=\"4\"/><text x=\"455\" y=\"325\">April</text><text x=\"455\" y=\"40\">78</text></g></svg>"
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.