Skip to content
Back to skills

Design Tool Schema

ASecurity

Designs tool or function definitions for an LLM agent, with names, descriptions, JSON Schema parameters and error returns that models call reliably. Use when exposing an API or capability to an agent.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 26, 2026
ai-agentsgoexpressapidatabase

Works with

  • api
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 26, 2026

npx -y skills add hermes-hq/hodios-dist --skill design-tool-schema --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Design Tool Schema?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Design Tool Schema
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hermes-hq-design-tool-schema-hodios-dist/badge)](https://www.skillsdirectory.com/skills/hermes-hq-design-tool-schema-hodios-dist)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: design-tool-schema
description: Designs tool or function definitions for an LLM agent, with names, descriptions, JSON Schema parameters and error returns that models call reliably. Use when exposing an API or capability to an agent.
license: CC0-1.0
metadata:
  version: 1.0.0
  kind: prompt
  category: ai-ml
  source: https://hermes-ide.com/prompts/design-tool-schema
  catalog: 2026.1014.1
---

# Design tool definitions for an LLM agent

## Inputs

- [CAPABILITIES] (required): What the agent must be able to do, in user terms, including actions that change data or cost money.
- [EXISTING_API] (optional): The API, SDK or database the tools will wrap, such as an OpenAPI spec, endpoint list or function signatures.
- [TARGET] (optional; one of: any, anthropic, openai, gemini, mcp; default: any): Where the definitions will be used. It decides the wrapper key for the schema (input_schema, parameters or inputSchema) and whether strict schema rules apply.

Take each value from the invocation or the user’s message. If a required value is missing, ask for it once.

<context>
A model decides which tool to call, and with what arguments, from the tool's name, description and parameter schema alone. Agents misbehave when tools overlap so the model guesses between them, when one tool per REST endpoint forces long brittle call chains, when parameters are free-form strings the model has to invent a format for, when results are huge raw payloads, and when errors are bare status codes that give the model nothing to correct. Tools are an interface for a reader that is literal and cannot ask questions, so they need more explanation than an API for humans, not less.
</context>

<task>
Design the tools for these capabilities, for target [TARGET]:
[CAPABILITIES]
Only if [EXISTING_API] was provided: 

Existing API to wrap:
[EXISTING_API]

1. List the user goals the agent must reach. Map them to the smallest set of tools with distinct, non-overlapping purposes. Combine steps that are always done together into one tool, and do not mirror the existing API one to one; say which endpoints each tool combines.
2. For each tool write:
   - a `verb_noun` name in snake_case, with a shared prefix when tools belong to one service;
   - a description of three to six sentences: what it does, when to use it, when not to use it and which tool to use instead, what it returns, and any side effects;
   - an input JSON Schema: `type: object`, a description on every property, enums for closed sets, explicit formats in the description (dates as ISO 8601, amounts in minor units), sensible defaults, a minimal `required` list and `additionalProperties: false`;
   - the output shape: only fields the model needs next, stable ids it can pass to other tools, and truncation or pagination for large results with a note telling the model how to get more;
   - side effects: read-only, idempotent, or destructive. Destructive or costly tools take an explicit confirmation or `dry_run` parameter and say so in the description.
3. Define the errors each tool can return. Every error message tells the model what went wrong and what to do next, for example "No customer matches 'Jon Smiht'. Call search_customers with a partial name."
4. Write 6 to 10 selection tests: a user request and the expected tool call with arguments, including near misses where no tool or a different tool should be used.
5. If a capability is too vague to define a safe tool, ask about it instead of guessing.
</task>

<constraints>
- Use a portable JSON Schema subset: `type`, `properties`, `required`, `enum`, `items`, `description`, `default`, `minimum`, `maximum`, `maxLength`. Avoid `$ref`, top-level `oneOf` or `anyOf`, and conditional schemas, which some providers reject.
- If the target enforces strict schemas (for example OpenAI's strict function calling), list every property in `required` and express optional ones as nullable, and say that you did. For `any`, say what changes per target.
- Never put credentials, tenant ids or authorisation decisions in parameters. The host application supplies identity and enforces permissions.
- Keep the set under about 15 tools unless the capabilities truly need more, and say why if they do.
- Do not invent endpoints or fields of the existing API. Mark anything you assumed.
</constraints>

<output_format>
## Tool set
Table: name | purpose | side effects | wraps.

## Definitions
One fenced JSON array of tool objects with `name`, `description` and the schema under the target's key: `input_schema` (anthropic, and for `any`), `parameters` (openai, gemini) or `inputSchema` (mcp). Follow it with each tool's output shape.

## Error catalogue
Table: tool | condition | message returned to the model.

## Selection tests
Numbered: user request, then the expected call or "no tool".

## Notes
Assumptions and open questions.
</output_format>

Files in this skill

  • SKILL.md4.8 KB
  • agents/openai.yaml333 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.