Skip to main content
Glama

Create a new relation

create_relation

Create a new business or private relation in Informer. Provide required company or personal details, and optionally set relation number, invoice template, and payment conditions.

Instructions

Create a new relation.

Create a new relation. The relation_number is optional; if omitted or 0, a new number is generated. The fields sales_invoice_template_id and payment_condition_id are optional; default values will be used if not provided.

When relation_type is 0 (company): company_name is required, firstname/surname are forbidden. When relation_type is 1 (private): firstname and surname are required, company_name is forbidden.

[Relations] POST /relations

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYes
administrationNoThe client administration to act on. Only one is configured: default.
Install Server

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already indicate the operation is not read-only, not idempotent, and not destructive. The description adds valuable behavioral context: relation_number generation when omitted or 0, default values for invoice template and payment condition, and strict field requirements based on relation_type. This goes beyond the annotations and helps the agent understand side effects and constraints.

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

Conciseness3/5

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

The description is structurally organized with a clear opening, optional/required field notes, and type-specific rules. However, it redundantly repeats 'Create a new relation' at the start, adding no value. The core content is concise, but the duplication and slightly unstructured flow prevent a higher score.

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?

The description covers essential context for a creation tool: what happens when optional identifiers are omitted, which fields are required or forbidden per relation type, and that defaults apply. The rich input schema provides detailed field descriptions and examples. There is no output schema to explain return values, but for a create operation the input constraints are the critical part. Minor gaps like error handling or authentication are not necessary given the annotations.

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 50%, meaning the schema documents many fields but not all. The description adds key semantic details for relation_number, sales_invoice_template_id, payment_condition_id, and the relation_type-specific required/forbidden fields. While it doesn't cover every parameter, the input schema already provides descriptions for most fields, so the description compensates reasonably for the coverage gap.

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

Purpose4/5

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

The description clearly states the tool's action: 'Create a new relation.' It distinguishes itself from siblings like update_relation and get_relation by its focus on creation. However, it repeats the phrase 'Create a new relation' twice and doesn't explicitly name sibling alternatives, so it's clear but not fully differentiated.

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 usage: use this tool to create a new relation, with conditions for company vs private types. It does not explicitly state when not to use it or mention alternatives like update_relation for modifications. The guidance is implicit rather than explicit, so it earns a 3.

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

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/vladxyz/informer-mcp'

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