Skip to main content
Glama
Setell-AI

Setell

Official

Setell realized job margin

setell_get_job_margin
Read-only

Compute realized margin for a job: revenue from recorded payments minus per-line costs from price-book. Shows unknown lines honestly.

Instructions

What the operator ACTUALLY made on a job (realized margin). Revenue from recorded payments (fallback: the decided quote total); per-line cost from the operator's price-book provenance, a high-trust price-book match, or labor hours × their loaded labor rate. marginPct is WITHHELD (null) when too little line value has a sourced cost — present the breakdown's UNKNOWN lines honestly instead of inventing a number. OPERATOR-ONLY data: never share cost or margin with a customer. Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jobIdYesThe job to compute realized margin for. Find it via setell_find_jobs or the setell://jobs resource.
Behavior5/5

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

The description discloses key behaviors beyond annotations: the specific calculation method (revenue from payments, cost from price-book or labor rates), the conditional withholding of marginPct when data is insufficient, and the instruction to present UNKNOWN lines honestly. It also emphasizes the operator-only nature, adding value beyond the readOnlyHint.

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?

Every sentence contributes essential information: purpose, calculation logic, null handling, and confidentiality. The description is concise without redundancy, front-loading the core purpose and progressively detailing edge cases and warnings.

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 lack of an output schema, the description adequately explains the key output behavior (marginPct may be null, lines may be UNKNOWN) and the calculation sources. However, it does not specify the exact output fields or structure, which could be clarified.

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?

The sole parameter jobId is documented in the schema with description. The tool description adds value by advising to find the job via setell_find_jobs or the setell://jobs resource, providing practical guidance beyond the schema.

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 the tool computes realized job margin, specifying that it uses revenue from payments and cost from price-book provenance. It distinguishes the tool by emphasizing 'realized margin' and operator-only data, making the purpose unambiguous.

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

Usage Guidelines2/5

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

The description does not explicitly guide when to use this tool versus its siblings (e.g., setell_get_margin_summary). It only provides usage-related warnings about not sharing data with customers but lacks when-to-use or when-not-to-use guidance.

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/Setell-AI/setell-mcp'

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