{"at":"2026-11-23T05:36:12.007Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T05:36:12.520Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T05:36:12.621Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T05:36:13.117Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"resources":{"listChanged":true},"tools":{"listChanged":true}},"instructions":"You are operating the business systems of Copper Kettle Plumbing & Air, a fictional small business (Residential HVAC and plumbing: repairs, replacements and maintenance plans; timezone America/Chicago, currency USD). Everything is simulated and offline: sending email or SMS only writes to an outbox. Money is always integer cents. Read sandbox://policies (or call admin_get_company_policies) before acting, look records up before changing them, and prefer the most specific tool.","protocolVersion":"2025-11-25","serverInfo":{"name":"sandbox-mcp","title":"SMB Sandbox","version":"0.1.0"}}}}
{"at":"2026-11-23T05:36:13.117Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T05:36:13.117Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T05:36:13.125Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Search contacts"},"description":"Find people by name, email, phone digits or title. Use before any contact-specific action to get the contact id. Set missingInfo to find contacts lacking a valid email or phone.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"customerId":{"type":"string"},"limit":{"description":"Max rows to return (default 25, max 100).","maximum":100,"minimum":1,"type":"integer"},"missingInfo":{"type":"boolean"},"offset":{"description":"Rows to skip (default 0).","maximum":9007199254740991,"minimum":0,"type":"integer"},"query":{"type":"string"}},"type":"object"},"name":"crm_search_contacts","title":"Search contacts"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Get contact"},"description":"Full profile of one contact plus their customer account, leads, deals and recent calls. Use when you need context before replying to or changing a contact.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"contactId":{"description":"Contact id","minLength":1,"type":"string"}},"required":["contactId"],"type":"object"},"name":"crm_get_contact","title":"Get contact"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Create contact"},"description":"Add a new person, optionally linked to a customer account. Search first to avoid creating duplicates.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"customerId":{"type":["string","null"]},"email":{"type":["string","null"]},"firstName":{"minLength":1,"type":"string"},"lastName":{"minLength":1,"type":"string"},"phone":{"type":["string","null"]},"title":{"type":["string","null"]}},"required":["firstName","lastName"],"type":"object"},"name":"crm_create_contact","title":"Create contact"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Update contact"},"description":"Change a contact's name, email, phone, title or customer link. Omitted fields stay as they are; null clears a field. Use to fix missing or malformed contact info.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"contactId":{"description":"Contact id","minLength":1,"type":"string"},"customerId":{"type":["string","null"]},"email":{"type":["string","null"]},"firstName":{"minLength":1,"type":"string"},"lastName":{"minLength":1,"type":"string"},"phone":{"type":["string","null"]},"title":{"type":["string","null"]}},"required":["contactId"],"type":"object"},"name":"crm_update_contact","title":"Update contact"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Merge duplicate contacts"},"description":"Fold a duplicate contact (mergeId) into the one to keep (keepId): empty fields are filled from the duplicate, all leads/deals/messages/calls are re-pointed, and the duplicate is deleted. Irreversible; confirm they are the same person first.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"keepId":{"description":"Contact to keep id","minLength":1,"type":"string"},"mergeId":{"description":"Duplicate contact to remove id","minLength":1,"type":"string"}},"required":["keepId","mergeId"],"type":"object"},"name":"crm_merge_contacts","title":"Merge duplicate contacts"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"List customers"},"description":"List customer accounts (households or businesses), newest first. Filter by text, status or owner.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"limit":{"description":"Max rows to return (default 25, max 100).","maximum":100,"minimum":1,"type":"integer"},"offset":{"description":"Rows to skip (default 0).","maximum":9007199254740991,"minimum":0,"type":"integer"},"ownerId":{"type":"string"},"query":{"type":"string"},"status":{"enum":["active","inactive","churned"],"type":"string"}},"type":"object"},"name":"crm_list_customers","title":"List customers"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Get customer"},"description":"One customer account with its contacts, deals, jobs and invoices. Use for a full account picture.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"customerId":{"description":"Customer id","minLength":1,"type":"string"}},"required":["customerId"],"type":"object"},"name":"crm_get_customer","title":"Get customer"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"List employees"},"description":"Active staff with ids and roles. Use to pick an owner for a deal/lead or an assignee for a job or task.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"includeInactive":{"type":"boolean"}},"type":"object"},"name":"crm_list_employees","title":"List employees"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"List leads"},"description":"Inbound leads, newest first. Set uncontacted: true to find leads nobody has responded to yet.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"contactId":{"type":"string"},"limit":{"description":"Max rows to return (default 25, max 100).","maximum":100,"minimum":1,"type":"integer"},"offset":{"description":"Rows to skip (default 0).","maximum":9007199254740991,"minimum":0,"type":"integer"},"ownerId":{"type":"string"},"status":{"enum":["new","contacted","qualified","disqualified","converted"],"type":"string"},"uncontacted":{"type":"boolean"}},"type":"object"},"name":"crm_list_leads","title":"List leads"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Update lead"},"description":"Change a lead's status or owner. Note: sending an email/SMS or logging an outbound call to the lead's contact marks it contacted automatically.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"leadId":{"description":"Lead id","minLength":1,"type":"string"},"ownerId":{"type":["string","null"]},"status":{"enum":["new","contacted","qualified","disqualified","converted"],"type":"string"}},"required":["leadId"],"type":"object"},"name":"crm_update_lead","title":"Update lead"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"List deals"},"description":"Sales pipeline deals, most recently updated first. Use staleDays to find open deals with no activity for N days, openOnly to skip won/lost.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"contactId":{"type":"string"},"customerId":{"type":"string"},"limit":{"description":"Max rows to return (default 25, max 100).","maximum":100,"minimum":1,"type":"integer"},"offset":{"description":"Rows to skip (default 0).","maximum":9007199254740991,"minimum":0,"type":"integer"},"openOnly":{"type":"boolean"},"ownerId":{"type":"string"},"stage":{"enum":["new","qualified","quote-sent","negotiation","won","lost"],"type":"string"},"staleDays":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"type":"object"},"name":"crm_list_deals","title":"List deals"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Get deal"},"description":"One deal with its quotes and contact.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"dealId":{"description":"Deal id","minLength":1,"type":"string"}},"required":["dealId"],"type":"object"},"name":"crm_get_deal","title":"Get deal"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Update deal"},"description":"Move a deal to a new stage and/or set its next action, amount or owner. Stage moves must follow the pipeline (new→qualified→quote-sent→negotiation→won/lost; won is final; lost can reopen). Moving to lost requires lostReason. Set nextAction to {summary, dueOn} so every open deal has a next step.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"amountCents":{"description":"Deal value in integer cents, e.g. 12500 = $125.00","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"dealId":{"description":"Deal id","minLength":1,"type":"string"},"lostReason":{"type":"string"},"nextAction":{"anyOf":[{"properties":{"dueOn":{"description":"Date, YYYY-MM-DD","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"summary":{"minLength":1,"type":"string"}},"required":["summary","dueOn"],"type":"object"},{"type":"null"}]},"ownerId":{"type":["string","null"]},"stage":{"enum":["new","qualified","quote-sent","negotiation","won","lost"],"type":"string"}},"required":["dealId"],"type":"object"},"name":"crm_update_deal","title":"Update deal"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"List quotes"},"description":"Quotes/estimates. Set notFollowedUp: true to find sent quotes that never got a follow-up.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"customerId":{"type":"string"},"dealId":{"type":"string"},"limit":{"description":"Max rows to return (default 25, max 100).","maximum":100,"minimum":1,"type":"integer"},"notFollowedUp":{"type":"boolean"},"offset":{"description":"Rows to skip (default 0).","maximum":9007199254740991,"minimum":0,"type":"integer"},"status":{"enum":["draft","sent","viewed","accepted","declined","expired"],"type":"string"}},"type":"object"},"name":"crm_list_quotes","title":"List quotes"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Send quote"},"description":"Send a draft quote to the customer (status becomes sent). Only works on drafts.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"expiresOn":{"description":"Date, YYYY-MM-DD","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"quoteId":{"description":"Quote id","minLength":1,"type":"string"}},"required":["quoteId"],"type":"object"},"name":"crm_send_quote","title":"Send quote"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Follow up on quote"},"description":"Message the deal's contact about a sent/viewed quote and record the follow-up on the quote. Write the full message body. Goes to the outbox; nothing is really delivered.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"body":{"minLength":1,"type":"string"},"channel":{"description":"Default email","enum":["email","sms"],"type":"string"},"contactId":{"description":"Defaults to the deal's contact","type":"string"},"employeeId":{"description":"Sender; defaults to the company address","type":"string"},"quoteId":{"description":"Quote id","minLength":1,"type":"string"}},"required":["quoteId","body"],"type":"object"},"name":"crm_follow_up_quote","title":"Follow up on quote"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"List tasks"},"description":"To-dos for staff. Filter by status, assignee or a related record id.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"assigneeId":{"type":"string"},"limit":{"description":"Max rows to return (default 25, max 100).","maximum":100,"minimum":1,"type":"integer"},"offset":{"description":"Rows to skip (default 0).","maximum":9007199254740991,"minimum":0,"type":"integer"},"relatedId":{"type":"string"},"status":{"enum":["open","done","canceled"],"type":"string"}},"type":"object"},"name":"crm_list_tasks","title":"List tasks"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Create task"},"description":"Create a to-do for a staff member, linked to the records it is about (relatedIds). Use when a human must do something you cannot.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"assigneeId":{"type":["string","null"]},"dueOn":{"anyOf":[{"description":"Date, YYYY-MM-DD","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},{"type":"null"}]},"relatedIds":{"items":{"type":"string"},"type":"array"},"title":{"minLength":1,"type":"string"}},"required":["title"],"type":"object"},"name":"crm_create_task","title":"Create task"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Complete task"},"description":"Mark an open task done.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"taskId":{"description":"Task id","minLength":1,"type":"string"}},"required":["taskId"],"type":"object"},"name":"crm_complete_task","title":"Complete task"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"List inbox threads"},"description":"Email and SMS conversations, newest activity first, with unread counts and the last message snippet. Use unreadOnly to triage.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"channel":{"enum":["email","sms"],"type":"string"},"contactId":{"type":"string"},"limit":{"description":"Max rows to return (default 25, max 100).","maximum":100,"minimum":1,"type":"integer"},"offset":{"description":"Rows to skip (default 0).","maximum":9007199254740991,"minimum":0,"type":"integer"},"query":{"type":"string"},"unreadOnly":{"type":"boolean"}},"type":"object"},"name":"inbox_list_threads","title":"List inbox threads"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Get thread"},"description":"All messages in one thread, oldest first. Read before replying.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"threadId":{"description":"Thread (thr_…) id","minLength":1,"type":"string"}},"required":["threadId"],"type":"object"},"name":"inbox_get_thread","title":"Get thread"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Send email"},"description":"Send an email to a contact, raw address, or as a reply in an existing thread (threadId). Subject is required for new threads. Written to the outbox only; nothing leaves the sandbox.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"body":{"minLength":1,"type":"string"},"contactId":{"type":"string"},"employeeId":{"description":"Sender; defaults to the company address","type":"string"},"relatedIds":{"description":"Records this email is about","items":{"type":"string"},"type":"array"},"subject":{"type":"string"},"threadId":{"type":"string"},"to":{"items":{"type":"string"},"type":"array"}},"required":["body"],"type":"object"},"name":"inbox_send_email","title":"Send email"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Send SMS"},"description":"Send a text message to a contact, raw number, or within an SMS thread. Outbox only.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"body":{"maxLength":1600,"minLength":1,"type":"string"},"contactId":{"type":"string"},"employeeId":{"type":"string"},"relatedIds":{"items":{"type":"string"},"type":"array"},"threadId":{"type":"string"},"to":{"type":"string"}},"required":["body"],"type":"object"},"name":"inbox_send_sms","title":"Send SMS"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Mark thread read"},"description":"Mark every message in a thread as read after handling it.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"threadId":{"description":"Thread id","minLength":1,"type":"string"}},"required":["threadId"],"type":"object"},"name":"inbox_mark_thread_read","title":"Mark thread read"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"List jobs"},"description":"Scheduled work (appointments / work orders / projects), latest start first. Filter by status, customer, assignee, or a start-time window [from, to).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"assigneeId":{"type":"string"},"customerId":{"type":"string"},"from":{"description":"Inclusive; YYYY-MM-DD or datetime","type":"string"},"limit":{"description":"Max rows to return (default 25, max 100).","maximum":100,"minimum":1,"type":"integer"},"offset":{"description":"Rows to skip (default 0).","maximum":9007199254740991,"minimum":0,"type":"integer"},"status":{"enum":["scheduled","in-progress","completed","canceled","no-show"],"type":"string"},"to":{"description":"Exclusive; YYYY-MM-DD or datetime","type":"string"}},"type":"object"},"name":"calendar_list_jobs","title":"List jobs"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Get job"},"description":"One job with its customer and invoices.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"jobId":{"description":"Job id","minLength":1,"type":"string"}},"required":["jobId"],"type":"object"},"name":"calendar_get_job","title":"Get job"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Schedule job"},"description":"Book new work for a customer. Assignees must be active employees and not double-booked (pass allowOverlap to override).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"allowOverlap":{"type":"boolean"},"assigneeIds":{"items":{"type":"string"},"type":"array"},"customerId":{"description":"Customer id","minLength":1,"type":"string"},"notes":{"type":["string","null"]},"quoteId":{"type":["string","null"]},"scheduledEnd":{"description":"ISO-8601 datetime, e.g. 2026-10-01T15:00:00Z","minLength":1,"type":"string"},"scheduledStart":{"description":"ISO-8601 datetime, e.g. 2026-10-01T15:00:00Z","minLength":1,"type":"string"},"title":{"minLength":1,"type":"string"}},"required":["customerId","title","scheduledStart","scheduledEnd"],"type":"object"},"name":"calendar_schedule_job","title":"Schedule job"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Reschedule job"},"description":"Move a scheduled or no-show job to a new time window (optionally new assignees). Does NOT notify the customer; send them a message separately if policy requires.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"allowOverlap":{"type":"boolean"},"assigneeIds":{"items":{"type":"string"},"type":"array"},"jobId":{"description":"Job id","minLength":1,"type":"string"},"reason":{"type":"string"},"scheduledEnd":{"description":"ISO-8601 datetime, e.g. 2026-10-01T15:00:00Z","minLength":1,"type":"string"},"scheduledStart":{"description":"ISO-8601 datetime, e.g. 2026-10-01T15:00:00Z","minLength":1,"type":"string"}},"required":["jobId","scheduledStart","scheduledEnd"],"type":"object"},"name":"calendar_reschedule_job","title":"Reschedule job"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Cancel job"},"description":"Cancel a scheduled or in-progress job. Requires a reason. Cannot be undone.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"jobId":{"description":"Job id","minLength":1,"type":"string"},"reason":{"minLength":1,"type":"string"}},"required":["jobId","reason"],"type":"object"},"name":"calendar_cancel_job","title":"Cancel job"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Complete job"},"description":"Mark a scheduled or in-progress job completed now, with optional notes.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"jobId":{"description":"Job id","minLength":1,"type":"string"},"notes":{"type":"string"}},"required":["jobId"],"type":"object"},"name":"calendar_complete_job","title":"Complete job"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"List invoices"},"description":"Invoices, newest first. Set overdue: true for unpaid invoices past their due date.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"customerId":{"type":"string"},"jobId":{"type":"string"},"limit":{"description":"Max rows to return (default 25, max 100).","maximum":100,"minimum":1,"type":"integer"},"offset":{"description":"Rows to skip (default 0).","maximum":9007199254740991,"minimum":0,"type":"integer"},"overdue":{"type":"boolean"},"status":{"enum":["draft","open","paid","partially-paid","void"],"type":"string"}},"type":"object"},"name":"invoicing_list_invoices","title":"List invoices"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Get invoice"},"description":"One invoice with its payments and balance due.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"invoiceId":{"description":"Invoice id","minLength":1,"type":"string"}},"required":["invoiceId"],"type":"object"},"name":"invoicing_get_invoice","title":"Get invoice"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Create invoice"},"description":"Issue an invoice to a customer (optionally for a job of that customer). Total is computed from line items; due date defaults to company payment terms.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"customerId":{"description":"Customer id","minLength":1,"type":"string"},"dueOn":{"description":"Date, YYYY-MM-DD","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"issuedOn":{"description":"Date, YYYY-MM-DD","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"jobId":{"type":["string","null"]},"lineItems":{"items":{"properties":{"description":{"minLength":1,"type":"string"},"quantity":{"exclusiveMinimum":0,"type":"number"},"sku":{"minLength":1,"type":"string"},"unitPriceCents":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["sku","description","quantity","unitPriceCents"],"type":"object"},"minItems":1,"type":"array"}},"required":["customerId","lineItems"],"type":"object"},"name":"invoicing_create_invoice","title":"Create invoice"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Send invoice reminder"},"description":"Send a payment reminder for an open or partially-paid invoice to the customer's contact (outbox only). A default polite body is used if none is given.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"body":{"type":"string"},"channel":{"enum":["email","sms"],"type":"string"},"contactId":{"type":"string"},"employeeId":{"type":"string"},"invoiceId":{"description":"Invoice id","minLength":1,"type":"string"}},"required":["invoiceId"],"type":"object"},"name":"invoicing_send_reminder","title":"Send invoice reminder"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Void invoice"},"description":"Void an invoice that has no payments applied (e.g. issued against the wrong job). Irreversible; requires a reason.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"invoiceId":{"description":"Invoice id","minLength":1,"type":"string"},"reason":{"minLength":1,"type":"string"}},"required":["invoiceId","reason"],"type":"object"},"name":"invoicing_void_invoice","title":"Void invoice"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Record payment"},"description":"Record money received against an invoice. Cannot exceed the balance; void, draft and paid invoices are rejected.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"amountCents":{"description":"Amount received in integer cents, e.g. 12500 = $125.00","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"invoiceId":{"description":"Invoice id","minLength":1,"type":"string"},"method":{"enum":["card","ach","check","cash"],"type":"string"},"reference":{"type":"string"}},"required":["invoiceId","amountCents","method"],"type":"object"},"name":"invoicing_record_payment","title":"Record payment"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"List payments"},"description":"Payments received, newest first. Set unmatched: true for payments not yet applied to any invoice.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"customerId":{"type":"string"},"invoiceId":{"type":"string"},"limit":{"description":"Max rows to return (default 25, max 100).","maximum":100,"minimum":1,"type":"integer"},"offset":{"description":"Rows to skip (default 0).","maximum":9007199254740991,"minimum":0,"type":"integer"},"unmatched":{"type":"boolean"}},"type":"object"},"name":"invoicing_list_payments","title":"List payments"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Match payment to invoice"},"description":"Apply an unmatched payment to the invoice it pays. Customer must match and amount must not exceed the balance.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"invoiceId":{"description":"Invoice id","minLength":1,"type":"string"},"paymentId":{"description":"Payment id","minLength":1,"type":"string"}},"required":["paymentId","invoiceId"],"type":"object"},"name":"invoicing_match_payment","title":"Match payment to invoice"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"List calls"},"description":"Phone call log, newest first. Use outcome: missed and direction: inbound to find calls that may need a callback.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"contactId":{"type":"string"},"direction":{"enum":["inbound","outbound"],"type":"string"},"limit":{"description":"Max rows to return (default 25, max 100).","maximum":100,"minimum":1,"type":"integer"},"offset":{"description":"Rows to skip (default 0).","maximum":9007199254740991,"minimum":0,"type":"integer"},"outcome":{"enum":["answered","missed","voicemail"],"type":"string"},"since":{"description":"Inclusive; YYYY-MM-DD or datetime","type":"string"}},"type":"object"},"name":"phone_list_calls","title":"List calls"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Log call"},"description":"Record a call you made or took (e.g. a callback), with outcome and a short summary. No real call is placed.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"contactId":{"type":"string"},"direction":{"description":"Default outbound","enum":["inbound","outbound"],"type":"string"},"durationSec":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"employeeId":{"type":"string"},"outcome":{"enum":["answered","missed","voicemail"],"type":"string"},"phone":{"description":"Defaults to the contact's phone","type":"string"},"summary":{"type":["string","null"]}},"required":["outcome"],"type":"object"},"name":"phone_log_call","title":"Log call"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Get company policies"},"description":"The company's plain-language operating rules (response times, follow-up cadence, payment terms...). Read before acting.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"admin_get_company_policies","title":"Get company policies"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Get company profile"},"description":"Company profile plus the simulated current time and today's date in company time.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"admin_get_company","title":"Get company profile"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Get audit log"},"description":"Every mutation attempted so far (tool, input, ok/error, changed ids), in order. Use sinceSeq to fetch only newer entries.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"sinceSeq":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"type":"object"},"name":"admin_get_audit_log","title":"Get audit log"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Reset sandbox"},"description":"Restore the original dataset and clock, discarding every change. The audit log is kept and records the reset.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"admin_reset","title":"Reset sandbox"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Save state"},"description":"Write the current dataset, audit log and outbox to the --state-out file for grading.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"admin_save_state","title":"Save state"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Advance clock"},"description":"Move simulated time forward by N minutes (e.g. to simulate waiting for a reply).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"minutes":{"maximum":43200,"minimum":0,"type":"integer"}},"required":["minutes"],"type":"object"},"name":"admin_advance_clock","title":"Advance clock"}]}}}
