Skip to main content
Glama
emqx

Sparkplug MCP Server

by emqx

divide

Provide a numerator and denominator to compute the division result.

Instructions

Divide the first number by the second.

Args:
    a: Numerator
    b: Denominator
    
Returns:
    The result of a / b

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bYes
Behavior2/5

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

No annotations are provided, so the description must carry the burden. It only states the basic operation and return value, omitting potential issues like division by zero, error handling, or precision. Minimal behavioral disclosure.

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 brief, with a clear main sentence and docstring-style args. Every word is necessary, and it is front-loaded. No extraneous content.

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?

Given the tool's simplicity (dividing two numbers), the description covers input parameters and return value. It lacks mention of edge cases like division by zero, but overall it is sufficient for an arithmetic operation.

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?

Parameters have zero schema description coverage, but the description adds semantic roles ('Numerator', 'Denominator') beyond the schema titles ('A', 'B'). This meaningfully aids the agent in understanding parameter purposes.

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 states 'Divide the first number by the second.' which clearly identifies the verb (divide) and resources (two numbers). It distinguishes from sibling tools (add, subtract, multiply).

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 for division but lacks explicit guidance on when to use alternatives or when not to use it (e.g., division by zero). For a simple arithmetic tool, it is adequate but not exemplary.

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/emqx/uns-demo'

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