Skip to main content
Glama

attach_file

Attach an uploaded file to a Billy daybook transaction, invoice, or bill. Provide the file ID and the record's type and ID to link a receipt or document.

Instructions

Attach an uploaded file to a Billy record (daybook transaction, invoice, or bill). Get the fileId from upload_file or list_files. Example: attach a receipt to journal entry #67 → ownerType 'daybookTransaction', ownerId ''.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileIdYesFile ID (see upload_file / list_files)
ownerIdYesID of the record to attach the file to
verboseNoReturn the full Billy response. Default false: compact records with key fields only (saves ~90% context)
priorityNoSort priority among the attachments of the same owner
ownerTypeYesType of the record to attach the file to
Behavior3/5

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

Annotations already indicate readOnlyHint=false and destructiveHint=false, so the description's mention of 'attach' as a write operation aligns. The description adds context about allowed ownerTypes and an example, but does not disclose further behavioral traits like reversibility or permissions.

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?

Two concise sentences plus a brief example. The first sentence states the purpose efficiently, and the example reinforces without excessive length. Every sentence adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema, and the description does not explain the return value (e.g., what is returned after attachment). The verbose parameter hints at response format in the schema, but the description lacks this context. For a mutation tool, additional info on response could improve completeness.

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 100%, so parameters are fully described. The description adds value by directing how to get fileId (from upload_file or list_files) and provides an example that clarifies the relationship between ownerType and ownerId. This goes beyond the schema alone.

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?

Description explicitly states the verb 'attach' and the resource 'uploaded file to a Billy record', and specifies the record types (daybookTransaction, invoice, bill). The example with daybookTransaction further clarifies scope. It clearly distinguishes from sibling tools like upload_file and list_files.

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?

Description indicates how to obtain the required fileId ('Get the fileId from upload_file or list_files') and provides an example illustrating ownerType and ownerId usage. It does not explicitly mention when not to use, but the context is clear for attachment tasks.

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/Thourum/billy-mcp'

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