Skip to main content
Glama

Build it yourself or use an offer? (Pyfio Router)

build_or_use
Read-only

Determines whether to build a task or use a measured Pyfio tool within budget, privacy and deadline constraints; returns recommendation, costs, quality, latency and call schema.

Instructions

Ask before you build: for a task (at most 500 characters) this says, from a table of measurements and not from a model, whether to build it yourself, use a measured Pyfio tool, or whether it is free anyway. Returns recommendation (use, build, free), the category, the measured self-build (USD, minutes, error rate, date, source), the offer (price per call, context tokens, quality with sample and date, latency), the call to make (tool name and argument schema), and reasons made of fixed text blocks. The task is assigned to a category locally by keywords and is not stored or sent anywhere; only the category and the budget level are counted. An unknown task answers "no measurement, build". Offers over the budget, not meeting the privacy level or slower than the deadline are rejected.

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": {
      "task": "<task>",
      "budget_usd": "<budget_usd>"
    },
    "name": "build_or_use"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYesWhat you want to get done, in one or two sentences
privacyNoWhere data may go: local (nowhere but the target), EU, or any (default)
budget_usdYesWhat this task may cost you in USD
deadline_sNoSeconds until you need the answer

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description goes well beyond them by disclosing that categorization happens locally by keywords, that the task text is neither stored nor sent anywhere, that only category and budget level are counted, and that an unknown task falls back to "no measurement, build". These are exactly the behavioral traits an agent needs before trusting the result.

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?

The critical instruction ("Ask before you build", task-size limit) is front-loaded and the long enumeration of return fields is justified because no output schema exists. Sentences are dense and run-on ("this says, from a table of measurements and not from a model"), which slightly slows parsing but no sentence is surplus.

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?

With no output schema, the description carries the full burden of describing the return payload, and it does so completely: recommendation values, category, self-build measurements, offer terms, the call to make with argument schema, and fixed-text reasons. Fallback behavior and filtering rules are also covered, leaving nothing an agent needs before calling.

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?

Schema coverage is already 100%, so the baseline is 3; the description earns more by explaining how the optional parameters actually bite — privacy gates which offers qualify, deadline_s rejects slower offers, and budget_usd rejects costlier ones. The only thing it merely repeats is the 500-character task limit.

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 states a specific function: given a task, it returns a recommendation (use / build / free) drawn from a measurement table rather than a model. The verb is implied ("this says ... whether") rather than a crisp action verb, but the resource and output shape are unambiguous. It does not differentiate against the sibling tools, though those (read_page, travel_time, weather, web_search) are clearly unrelated.

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?

"Ask before you build" gives a clear trigger: consult this tool before undertaking a task yourself. It also specifies selection logic — offers are rejected for exceeding budget, violating the privacy level, or missing the deadline — which tells the agent what inputs actually constrain the answer. It stops short of stating when not to call it or naming any alternative.

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

Deploy Server

Other Tools