Skip to main content
Glama

respond_to_diplomacy

Respond to a pending diplomacy encounter by sending a positive or negative reply. Automatically handles multi-round first meetings and ends when dialogue stops.

Instructions

Respond to a pending diplomacy encounter.

Args:
    other_player_id: The player ID of the other civilization (from get_pending_diplomacy)
    response: "POSITIVE" (friendly) or "NEGATIVE" (dismissive)

First meetings typically have 2-3 rounds. The tool automatically detects
and closes goodbye-phase sessions (where dialogue text stops changing).
If SESSION_CONTINUES is returned, send another response for the next round.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
other_player_idYes
responseYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations provided, so description carries full burden. Discloses automatic detection and closing of goodbye-phase sessions, and explains the multi-round nature. Lacks mention of potential errors but covers key behavior.

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?

Front-loaded with purpose, then argument details, then behavioral notes. No redundant sentences. Could slightly tighten phrasing but overall efficient.

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?

With two required params, no schema descriptions, and no annotations, the description adequately covers the multi-round workflow, automatic session closing, and return value indicator. Missing details on error handling but acceptable.

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

Parameters4/5

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

Adds meaning beyond bare schema: specifies other_player_id as coming from get_pending_diplomacy, and defines response values as 'POSITIVE (friendly) or NEGATIVE (dismissive)'. Schema had 0% description coverage, so this is essential.

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?

Clearly states 'Respond to a pending diplomacy encounter' with specific verb and resource. Distinguishes from sibling tools like propose_peace and form_alliance by focusing on pending encounters.

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

Usage Guidelines4/5

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

Provides explicit usage context: 'First meetings typically have 2-3 rounds' and 'If SESSION_CONTINUES is returned, send another response.' Also references get_pending_diplomacy for the player ID.

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/lmwilki/civ6-mcp'

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