Skip to main content
Glama
themiguelamador

toconline-mcp

create_address

Create an address for a customer or supplier. Duplicate addresses return the existing record instead of raising an error.

Instructions

Create an address attached to a customer or supplier.

TOCOnline uses a polymorphic association — the parent is identified via the addressable_type ("Customer" | "Supplier") and addressable_id attributes, not a JSON:API relationship.

Returns the created (or, on a duplicate, the existing) address re-fetched by id, so the parent link and all fields are populated — the raw POST echo omits them, which makes the address look empty/unlinked.

TOCOnline enforces a uniqueness constraint on address_detail + postcode per parent and raises [400] já existe na tabela on a duplicate; this tool catches that and returns the existing address (idempotent).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cityYesCity.
regionNoRegion / state.
postcodeNoPostcode / ZIP.
is_primaryNoWhether this is the entity's primary address.
customer_idNoAttach to a customer. Provide exactly one of customer_id or supplier_id.
supplier_idNoAttach to a supplier. Provide exactly one of customer_id or supplier_id.
address_detailYesStreet / address line.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations, the description fully discloses the polymorphic association, return behavior (re-fetched by id to avoid empty look), and uniqueness constraint with idempotent duplicate handling.

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

Conciseness4/5

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

Description is well-structured with clear paragraphs, each adding value. While slightly long, it front-loads the purpose and is efficient for the complexity involved.

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

Completeness5/5

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

Completely covers the polymorphic behavior, duplicate handling, and return format. Given the complexity and the presence of an output schema, it provides all necessary context for correct invocation.

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 coverage is 100% and provides good descriptions. The description adds context about the underlying polymorphic association but doesn't significantly augment parameter meanings beyond what the schema already offers.

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 clearly states 'Create an address attached to a customer or supplier' and explains the polymorphic association, distinguishing it from update_address and delete_address.

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

Usage Guidelines5/5

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

Explicitly explains the mechanism to identify the parent (addressable_type/addressable_id) and that exactly one of customer_id or supplier_id must be provided. Also covers duplicate handling, making idempotent behavior clear.

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/themiguelamador/toconline-mcp'

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