Skip to main content
Glama

Score Opportunity Economics

score_opportunity
Read-onlyIdempotent

Calculate risk-adjusted expected profit, margin and eligibility for one proposed opportunity before execution. Supply revenue, execution cost and any tool costs, fees or failure loss in one consistent monetary unit; omitted tool costs and fees are zero, while omitted failure loss defaults to total costs. Use this free read-only calculation as an economics screen, never as proof of funding, escrow, requirements or buyer legitimacy. An eligible result includes an optional buyer-controlled verify_execution handoff; it does not charge or initiate payment.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "revenue": "<revenue>",
      "executionCost": "<executionCost>"
    },
    "name": "score_opportunity"
  }
}

Input Schema

NameRequiredDescriptionDefault
feesNoOptional platform/payment fees.
revenueYesGross payment expected if the task succeeds.
toolCostNoOptional third-party/tool cost.
failureLossNoLoss incurred on failure. Defaults internally to total execution/tool/fee cost.
executionCostYesDirect execution cost excluding tools and fees.
failureProbabilityNoEstimated probability of failure, from 0 to 1.

Output Schema

NameRequiredDescriptionDefault
marginYesExpected profit divided by revenue; 0 when revenue is 0.
eligibleYesTrue when expected profit is at least 0.05 and margin is at least 0.20.
nextStepNoOptional buyer-controlled path from a useful free result to ARN's proven paid execution-verification capability. Presence does not charge or initiate payment.
expectedProfitYesRisk-adjusted expected profit in the same monetary unit as the inputs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / nextStep / properties / professionalHelp
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "automaticOutreach": {
      +      "const": false,
      +      "type": "boolean"
      +    },
      +    "automaticPurchase": {
      +      "const": false,
      +      "type": "boolean"
      +    },
      +    "buyerApprovalRequired": {
      +      "const": true,
      +      "type": "boolean"
      +    },
      +    "cloudflareSpecialty": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "display": {
      +          "type": "string"
      +        },
      +        "fit": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "format": "uri",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "display",
      +        "url",
      +        "fit"
      +      ],
      +      "type": "object"
      +    },
      +    "general": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "display": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "format": "uri",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "display",
      +        "url"
      +      ],
      +      "type": "object"
      +    },
      +    "reason": {
      +      "type": "string"
      +    },
      +    "type": {
      +      "const": "optional_request_only_service",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "type",
      +    "reason",
      +    "general",
      +    "cloudflareSpecialty",
      +    "automaticPurchase",
      +    "automaticOutreach",
      +    "buyerApprovalRequired"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / nextStep / required
      Previous value: -[
      -  "type",
      -  "sourceTool",
      -  "recommendedTool",
      -  "reason",
      -  "evidenceBoundary",
      -  "guide",
      -  "machineGuide",
      -  "payPerCall",
      -  "starterPrepaid30Day",
      -  "prepaid30Day",
      -  "buyerApprovalRequired",
      -  "automaticPurchase",
      -  "discoveryCharges"
      -]New value: +[
      +  "type",
      +  "sourceTool",
      +  "recommendedTool",
      +  "reason",
      +  "evidenceBoundary",
      +  "guide",
      +  "machineGuide",
      +  "payPerCall",
      +  "starterPrepaid30Day",
      +  "prepaid30Day",
      +  "buyerApprovalRequired",
      +  "automaticPurchase",
      +  "discoveryCharges",
      +  "professionalHelp"
      +]
  2. Changed1 schema field changed
    • addedOutput schema / properties / nextStep
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Optional buyer-controlled path from a useful free result to ARN's proven paid execution-verification capability. Presence does not charge or initiate payment.",
      +  "properties": {
      +    "automaticPurchase": {
      +      "const": false,
      +      "type": "boolean"
      +    },
      +    "buyerApprovalRequired": {
      +      "const": true,
      +      "type": "boolean"
      +    },
      +    "discoveryCharges": {
      +      "const": false,
      +      "type": "boolean"
      +    },
      +    "evidenceBoundary": {
      +      "type": "string"
      +    },
      +    "guide": {
      +      "format": "uri",
      +      "type": "string"
      +    },
      +    "machineGuide": {
      +      "format": "uri",
      +      "type": "string"
      +    },
      +    "payPerCall": {
      +      "type": "object"
      +    },
      +    "prepaid30Day": {
      +      "type": "object"
      +    },
      +    "reason": {
      +      "type": "string"
      +    },
      +    "recommendedTool": {
      +      "const": "verify_execution",
      +      "type": "string"
      +    },
      +    "sourceTool": {
      +      "enum": [
      +        "score_opportunity",
      +        "route_provider"
      +      ],
      +      "type": "string"
      +    },
      +    "starterPrepaid30Day": {
      +      "type": "object"
      +    },
      +    "type": {
      +      "const": "optional_paid_verification",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "type",
      +    "sourceTool",
      +    "recommendedTool",
      +    "reason",
      +    "evidenceBoundary",
      +    "guide",
      +    "machineGuide",
      +    "payPerCall",
      +    "starterPrepaid30Day",
      +    "prepaid30Day",
      +    "buyerApprovalRequired",
      +    "automaticPurchase",
      +    "discoveryCharges"
      +  ],
      +  "type": "object"
      +}
  3. Changed18 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / description
      Added value: +"Risk-adjusted economics for one opportunity. All monetary values must use the same unit."
    • addedInput schema / properties / executionCost / description
      Added value: +"Direct execution cost excluding tools and fees."
    • addedInput schema / properties / executionCost / minimum
      Added value: +0
    • addedInput schema / properties / failureLoss
      Added value: +{
      +  "description": "Loss incurred on failure. Defaults internally to total execution/tool/fee cost.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / failureProbability / default
      Added value: +0
    • addedInput schema / properties / failureProbability / description
      Added value: +"Estimated probability of failure, from 0 to 1."
    • addedInput schema / properties / failureProbability / maximum
      Added value: +1
    • addedInput schema / properties / failureProbability / minimum
      Added value: +0
    • addedInput schema / properties / fees / default
      Added value: +0
    • addedInput schema / properties / fees / description
      Added value: +"Optional platform/payment fees."
    • addedInput schema / properties / fees / minimum
      Added value: +0
    • addedInput schema / properties / revenue / description
      Added value: +"Gross payment expected if the task succeeds."
    • addedInput schema / properties / revenue / minimum
      Added value: +0
    • addedInput schema / properties / toolCost / default
      Added value: +0
    • addedInput schema / properties / toolCost / description
      Added value: +"Optional third-party/tool cost."
    • addedInput schema / properties / toolCost / minimum
      Added value: +0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "eligible": {
      +      "description": "True when expected profit is at least 0.05 and margin is at least 0.20.",
      +      "type": "boolean"
      +    },
      +    "expectedProfit": {
      +      "description": "Risk-adjusted expected profit in the same monetary unit as the inputs.",
      +      "type": "number"
      +    },
      +    "margin": {
      +      "description": "Expected profit divided by revenue; 0 when revenue is 0.",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "expectedProfit",
      +    "margin",
      +    "eligible"
      +  ],
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the bar is lower, yet the description still adds substantive behavior: the calculation is free, it does not charge or initiate payment, and it documents defaulting rules (omitted tool costs and fees are zero, omitted failure loss falls back to total costs). It also discloses the shape of an eligible result via the buyer-controlled verify_execution handoff.

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 the core action, then caveats in priority order (unit consistency, defaults, non-guarantees, payment behavior). Three dense sentences with no filler, though the middle sentence carries multiple constraints at once and could be split for faster scanning.

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?

Output schema exists, so return values need no explanation; the description instead covers the things an agent cannot infer — unit consistency, default semantics, the screen-not-proof boundary, and the absence of payment side effects. Nothing needed to call it correctly is missing.

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 100%, so all six parameters including defaults are already documented in the schema. The description's notes on omitted tool costs, fees, and failure-loss defaults largely restate what the schema's default/minimum fields already convey; the 'one consistent monetary unit' requirement is also present in the schema description, so it adds little beyond the structured data.

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?

States a specific verb and resource — 'calculate risk-adjusted expected profit, margin and eligibility for one proposed opportunity before execution' — and scopes it to a single opportunity, which separates it from the verification-flavored siblings like verify_execution and execution_proof_pack.

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?

Gives explicit usage context ('use as an economics screen') plus explicit exclusions ('never as proof of funding, escrow, requirements or buyer legitimacy') and names the downstream alternative (verify_execution handoff) along with who controls it. An agent knows both when to call this and when not to.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources