Skip to main content
Glama
akhelij
by akhelij

apidog_upsert_schema

Create or update a component schema in Apidog, merging it into components/schemas for reuse via $ref from endpoints.

Instructions

Create or update a component schema (data model) in Apidog. The schema is merged into components/schemas. Use $ref to reference from endpoints.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesSchema name, e.g. "User", "Invoice"
schemaYesJSON Schema object
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the behavioral burden. It does disclose useful behavior: the schema is merged into components/schemas and the operation is an upsert. It does not mention auth, return format, or error conditions, but it goes beyond a bare operation name.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two concise sentences with no filler. The operation and merge destination are front-loaded, and the $ref note adds practical guidance without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter tool with no output schema and full schema coverage, the description is nearly complete: it states what the tool does, where the schema goes, and how it connects to endpoints. Missing response/error behavior is a minor gap given the low complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the input schema already documents both parameters. The description adds context about merging into components/schemas and using $ref, but it does not add new per-parameter semantics beyond what the schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Create or update') and a clear resource ('component schema (data model)'), and it explains the schema is merged into components/schemas. This makes it easy to distinguish from the sibling endpoint tools like apidog_upsert_endpoint.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the primary use case: defining reusable component schemas and referencing them via $ref from endpoints. However, it does not explicitly name alternatives or state when not to use this tool, so the usage guidance remains implied rather than explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/akhelij/apidog-sync-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server