Skip to main content
Glama

Portravo Construction Takeoff

Attach a construction plan PDF

attach_plan_pdf
Idempotent

Attach a PDF the user selected in this conversation as the first plan for a new Portravo project. Plan PDFs must be 10 MiB or smaller. Accepts exactly one of plan, a host-provided download_url and file_id, or plan_inline, canonical base64 of the exact user-uploaded PDF bytes with file_name and application/pdf mime_type, up to 32 KiB. A PDF with no file link above 32 KiB, or any PDF above the direct limit, is uploaded in the browser at the project's reviewUrl instead. That browser path streams up to 50 MiB for the selected automatic trades. Projects that already have a plan or review work are refused, so existing work is never replaced. Repeating a call with the same idempotency_key returns the original result. Stores the selected PDF privately in the connected account; does not extract or consume credits.

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": {
      "project_id": "<project_id>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "attach_plan_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
planNoHost-provided signed file link for a PDF the user attached (PDF up to 10 MiB). Supply exactly one of plan or plan_inline, never both and never neither.
project_idYes
plan_inlineNoExact bytes of a user-uploaded PDF as canonical base64, only when no file link exists. PDF up to 32 KiB. Supply exactly one of plan or plan_inline, never both and never neither.
idempotency_keyYes

Output Schema

NameRequiredDescriptionDefault
statusYes
reviewUrlYes
planFileIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / oneOf
      Removed value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "plan_inline"
      -      ]
      -    },
      -    "required": [
      -      "plan"
      -    ]
      -  },
      -  {
      -    "not": {
      -      "required": [
      -        "plan"
      -      ]
      -    },
      -    "required": [
      -      "plan_inline"
      -    ]
      -  }
      -]
    • changedInput schema / properties / plan / description
      Previous value: -"Host-provided signed file link for a PDF the user attached (PDF up to 10 MiB)."New value: +"Host-provided signed file link for a PDF the user attached (PDF up to 10 MiB). Supply exactly one of plan or plan_inline, never both and never neither."
    • changedInput schema / properties / plan_inline / description
      Previous value: -"Exact bytes of a user-uploaded PDF as canonical base64, only when no file link exists. PDF up to 32 KiB."New value: +"Exact bytes of a user-uploaded PDF as canonical base64, only when no file link exists. PDF up to 32 KiB. Supply exactly one of plan or plan_inline, never both and never neither."
  2. Changed2 schema fields changed
    • addedInput schema / properties / plan / description
      Added value: +"Host-provided signed file link for a PDF the user attached (PDF up to 10 MiB)."
    • addedInput schema / properties / plan_inline / description
      Added value: +"Exact bytes of a user-uploaded PDF as canonical base64, only when no file link exists. PDF up to 32 KiB."
  3. Changed3 schema fields changed
    • addedInput schema / oneOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "plan_inline"
      +      ]
      +    },
      +    "required": [
      +      "plan"
      +    ]
      +  },
      +  {
      +    "not": {
      +      "required": [
      +        "plan"
      +      ]
      +    },
      +    "required": [
      +      "plan_inline"
      +    ]
      +  }
      +]
    • addedInput schema / properties / plan_inline
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "data_base64": {
      +      "maxLength": 43692,
      +      "minLength": 4,
      +      "type": "string"
      +    },
      +    "file_name": {
      +      "maxLength": 200,
      +      "minLength": 5,
      +      "pattern": "^[^/\\\\\\x00-\\x1f]+\\.pdf$",
      +      "type": "string"
      +    },
      +    "mime_type": {
      +      "const": "application/pdf",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "data_base64",
      +    "mime_type",
      +    "file_name"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "project_id",
      -  "plan",
      -  "idempotency_key"
      -]New value: +[
      +  "project_id",
      +  "idempotency_key"
      +]
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations it discloses the concrete limits (10 MiB direct, 32 KiB inline, 50 MiB browser path), that existing work is never replaced, that the PDF is stored privately in the connected account, that no credits are consumed, and that repeat calls with the same idempotency_key return the original result. These are exactly the operational facts an agent needs before calling a mutating, open-world tool.

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?

It is a single dense paragraph, front-loaded with purpose and then ordered by size limit, fallback path, refusal rule, idempotency, and side effects. No sentence is wasted, though the run-on flow of limits and fallback paths takes a second read to parse.

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?

For a 4-parameter nested-object mutation with an output schema available, the description covers all the decision-relevant behavior: payload limits, where oversized PDFs go instead, refusal conditions, idempotency, and that no credits are consumed. Nothing an agent needs 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.

Parameters4/5

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

With 50% schema coverage, the description compensates well: it explains the exactly-one-of choice between plan and plan_inline, the required canonical base64 of exact user-uploaded bytes with file_name and application/pdf mime_type, and the idempotency_key replay semantics. Some of the either/or wording duplicates the schema's own property descriptions, which slightly lowers the added value.

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 opening sentence gives a specific verb (attach), a specific resource (a PDF the user selected in this conversation), and a specific target (the first plan for a new Portravo project). It is immediately distinguishable from siblings like create_project or run_takeoff, which do not store a supplied PDF.

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?

It clearly states the conditions that route work away from this tool: a PDF with no file link above 32 KiB, or any PDF above the direct limit, goes through the browser upload path at reviewUrl instead, and projects that already have a plan or review work are refused. It does not name sibling tools as alternatives, but the routing conditions are explicit.

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